随笔分类 -  算法--组合问题

摘要:1.题目描述Givenasetofcandidatenumbers(C)andatargetnumber(T),findalluniquecombinationsinCwherethecandidatenumberssumstoT.ThesamerepeatednumbermaybechosenfromCunlimitednumberoftimes.Note:Allnumbers(includingtarget)willbepositiveintegers.Elementsinacombination(a1,a2,。。。,ak)mustbeinnon-descendingorder.(ie,a 阅读全文
posted @ 2013-08-28 19:53 曾见绝美的阳光 阅读(378) 评论(0) 推荐(0)
摘要:1.题目描述 Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, ... 阅读全文
posted @ 2013-08-25 13:41 曾见绝美的阳光 阅读(241) 评论(0) 推荐(1)