Skip to content

Latest commit

 

History

History
executable file
·
23 lines (15 loc) · 359 Bytes

File metadata and controls

executable file
·
23 lines (15 loc) · 359 Bytes

题目

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

[
  ["aa","b"],
  ["a","a","b"]
]

解题思路

见程序注释