摘要: 39. 组合总和 class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: res = [] candidates.sort() self.tracebacking 阅读全文
posted @ 2023-11-06 21:21 忆象峰飞 阅读(14) 评论(0) 推荐(0)
摘要: 216.组合总和III class Solution: def combinationSum3(self, k: int, n: int) -> List[List[int]]: res = [] self.tracebacking(n, k, 1, 0, [], res) return res d 阅读全文
posted @ 2023-11-06 19:49 忆象峰飞 阅读(11) 评论(0) 推荐(0)