题目:Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the tele...
分类:
其他好文 时间:
2015-12-15 15:54:54
阅读次数:
149
题目来源https://leetcode.com/problems/combination-sum/Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere ...
分类:
编程语言 时间:
2015-12-07 14:13:02
阅读次数:
189
题目来源https://leetcode.com/problems/combination-sum-ii/Given a collection of candidate numbers (C) and a target number (T), find all unique combinations...
分类:
编程语言 时间:
2015-12-07 14:00:38
阅读次数:
152
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-12-07 00:26:22
阅读次数:
152
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-12-06 22:38:44
阅读次数:
171
题目描述:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each nu...
分类:
编程语言 时间:
2015-12-04 22:59:19
阅读次数:
401
题目描述:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeate...
分类:
编程语言 时间:
2015-12-04 22:53:39
阅读次数:
197
题目:Numbers can be regarded as product of its factors. For example,8 = 2 x 2 x 2; = 2 x 4.Write a function that takes an integernand return all possib....
分类:
其他好文 时间:
2015-12-03 02:05:09
阅读次数:
710
问题:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:
其他好文 时间:
2015-11-27 14:57:24
阅读次数:
158
这个题目比较要注意的一点是如何防止重复。在dfs中,下一层的因子应该大于等于上一层的public class Solution { List> result = new ArrayList>(); public List> getFactors(int n) { if (n...
分类:
其他好文 时间:
2015-11-26 17:10:15
阅读次数:
162