Combination Sum
2015-09-14 08:37
218 查看
Given a set of candidate numbers (C) and a target number (T ), find all unique combinations in C where
the candidate numbers sums to T .
The same repeated number may be chosen from C unlimited number of times.
Note:
• All numbers (including target) will be positive integers.
• Elements in a combination (a1, a2, …, ak) must be in non-descending order. (ie, a1 > a2 > … > ak).
• The solution set must not contain duplicate combinations.
For example, given candidate set 2,3,6,7 and target 7, A solution set is:
[7]
[2, 2, 3]
the candidate numbers sums to T .
The same repeated number may be chosen from C unlimited number of times.
Note:
• All numbers (including target) will be positive integers.
• Elements in a combination (a1, a2, …, ak) must be in non-descending order. (ie, a1 > a2 > … > ak).
• The solution set must not contain duplicate combinations.
For example, given candidate set 2,3,6,7 and target 7, A solution set is:
[7]
[2, 2, 3]
相关文章推荐
- Combination Sum II
- 新浪微博-02搭建主框架
- N-Queens
- N-Queens II
- 关于 32位 机的 C的数据类型占字节数
- Nodejs课堂笔记-第六课 在DynamoDB中如何创建表
- 第二周【项目0】 宣告主权
- opencv _ Mat
- 正则表达式10分钟入门教程
- MapReduce1---关于排序的总结
- Android学习笔记之Service学习笔记
- angularJS<六、$scope里的$watch方法>
- MonoDevelop几个常用的快捷键
- 业界资讯:Egret Engine 2.5 迎来大更新
- angularJS<五、$scope中的$apply和$digest>
- 设计模式-02-单例
- [转载]Qt之获取本机网络信息
- 解析XML格式数据的方式——Pull解析、SAX解析
- 探索c#之storm的TimeCacheMap
- angularJS<四、多个Controller的作用域>