![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
回溯
不了痕
风景很美,常回头看看
展开
-
【leetcode 77】Combinations 元素组合
题目Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.Example:Input:n = 4, k = 2Output:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]解题思路...原创 2020-03-22 13:22:30 · 318 阅读 · 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 · 277 阅读 · 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 · 271 阅读 · 0 评论