Question
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 = "aab",
Return
Explanation
用回溯法找到每种可能的组合的模式,然后对于每个部分字符串去判断是否是回文字符串。算是常规题,略组合了一下,有趣。