Numbers can be regarded as product of its factors. For example, Write a function that takes an integer n and return all possible combinations of its f ...
分类:
其他好文 时间:
2016-09-16 12:41:36
阅读次数:
146
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2016-09-16 10:12:49
阅读次数:
141
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 repeat ...
分类:
其他好文 时间:
2016-09-09 18:23:38
阅读次数:
139
BackTracking (DFS) 39. Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candi ...
分类:
其他好文 时间:
2016-09-08 13:00:41
阅读次数:
129
标签: 动态规划 描述: Given an integer array nums with all positive numbers and no duplicates, find the number of possible combinations that add up to a positi ...
分类:
其他好文 时间:
2016-09-08 00:30:01
阅读次数:
149
Given two integers n and k, return all possible combinations of k numbers out of 1,2,...,n. ...
分类:
其他好文 时间:
2016-09-07 17:32:55
阅读次数:
136
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. ...
分类:
其他好文 时间:
2016-09-01 07:04:28
阅读次数:
227
输入n和k,求1~n中任选k个数的所有组合 这题是选择不是排列,所以用dfs+回溯 还是那个问题——去重:想象一颗树,每一层相同的元素只搜索一次,下次若同一层这个元素已经做过了就跳过,具体看代码 ...
分类:
其他好文 时间:
2016-08-31 00:31:31
阅读次数:
145
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. ...
分类:
其他好文 时间:
2016-08-28 07:36:20
阅读次数:
169
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each ...
分类:
其他好文 时间:
2016-08-27 23:20:38
阅读次数:
127