Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s =
Return
"aab"
,Return
[
["aa","b"],
["a","a","b"]
]
DFS.
Comments
Post a Comment