Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
Example:
Input: “aab”
Output:
1 | [ |
Code
1 | public List<List<String>> partition(String s) { |
写BUG的程序猿
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
Input: “aab”
Output:
1 | [ |
1 | public List<List<String>> partition(String s) { |