随笔分类 - 算法--组合问题
摘要:1.题目描述Givenasetofcandidatenumbers(C)andatargetnumber(T),findalluniquecombinationsinCwherethecandidatenumberssumstoT.ThesamerepeatednumbermaybechosenfromCunlimitednumberoftimes.Note:Allnumbers(includingtarget)willbepositiveintegers.Elementsinacombination(a1,a2,。。。,ak)mustbeinnon-descendingorder.(ie,a
阅读全文
摘要:1.题目描述 Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, ...
阅读全文