This commit is contained in:
programmercarl
2025-01-03 15:29:08 +08:00
127 changed files with 2094 additions and 393 deletions

View File

@@ -75,7 +75,7 @@ for (int i = startIndex; i < candidates.size() && sum + candidates[i] <= target;
除了这些难点,**本题还有细节例如切割过的地方不能重复切割所以递归函数需要传入i + 1**。
所以本题应该是一道hard题目了。
所以本题应该是一道hard题目了。
**本题的树形结构中,和代码的逻辑有一个小出入,已经判断不是回文的子串就不会进入递归了,纠正如下:**