vault backup: 2026-01-18 13:10:41

This commit is contained in:
thinkbook 2026-01-18 13:10:41 +08:00
parent c9ad35e3c9
commit 3d4e4cf03c
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
- [ ] [40. 组合总和 II - 力扣LeetCode](https://leetcode.cn/problems/combination-sum-ii/) 重点是结果去重,技巧
1. 先对 candidates 排序,这样就不会出现 `[[1,2,5], [1,5,2]]` 的情况
2. 在每一个 epoch 中,循环时跳过 visited 元素,这样就不会出现 `[[1,2,5], [1,2,5]]` 的情况
- [ ] [131. 分割回文串 - 力扣LeetCode](https://leetcode.cn/problems/palindrome-partitioning/)
- [ ] [78. 子集 - 力扣LeetCode](https://leetcode.cn/problems/subsets/)子集问题实际是取树的所有节点(其他回溯是取叶子节点),所以收集结果写在终止条件 if 之前
- [ ] [47. 全排列 II - 力扣LeetCode](https://leetcode.cn/problems/permutations-ii/)