【python/leectode/M/131】Palindrome Partitioning

题目 基本思路 使用DFS来找出所有符合条件的子串,判断回文也是在简单不过的函数 都是简单函数的堆积,问题不大 实现代码 class Solution(object): def partition(self, s): """ :type s: str :rtype: List[List[str]] """ if not s: retu
相关文章
相关标签/搜索