题目:https://leetcode.com/problems/palindrome-partitioning/
代码(github):https://github.com/illuz/leetcode
把一个字符串分割,使每一部分都是回文。
- (C++) 递归,找到回文,然后递归后面部分
- (Python) 对 1 进行优化,预处理每个位置对应的回文
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
题目:https://leetcode.com/problems/palindrome-partitioning/
代码(github):https://github.com/illuz/leetcode
把一个字符串分割,使每一部分都是回文。