6.11笔记

131.分割回文串:环遍历字符串,检查substr(0,i)是否是回文。如果是,则在子字符串的其余部分递归调用dfs():substr(i + 1,length)。到目前为止,将当前的回文分区保留在dfs()的’path’参数中。到达字符串末尾时,在结果中添加当前分区。
137. 只出现一次的数字 II:https://blog.csdn.net/jiangxiewei/article/details/82227451 还有有点没看懂。

猜你喜欢

转载自blog.csdn.net/sinat_35325378/article/details/91446596