
回溯
不了痕
风景很美,常回头看看
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【leetcode 77】Combinations 元素组合
题目 Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n. Example: Input:n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] 解题思路...原创 2020-03-22 13:22:30 · 366 阅读 · 0 评论 -
【leetcode 39】 Combination Sum 组合总数
题目 Given asetof candidate numbers (candidates)(without duplicates)and a target number (target), find all unique combinations incandidateswhere the candidate numbers sums totarget. Thesame...原创 2020-02-02 23:15:30 · 324 阅读 · 0 评论 -
【leetcode 40】Combination Sum II 组合总数II
题目 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations incandidateswhere the candidate numbers sums totarget. Each number incandidate...原创 2020-02-03 14:33:24 · 306 阅读 · 0 评论