Problem Definition:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just l...
分类:
其他好文 时间:
2015-07-30 16:24:09
阅读次数:
151
Truncatable primes
Problem 37
The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 7...
分类:
其他好文 时间:
2015-07-30 13:43:24
阅读次数:
148
【077-Combinations(组合数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given two integers n and k, return all possible combinations of k numbers out of 1 … n.
For example,
If n = 4 and k = 2, a solution is...
分类:
编程语言 时间:
2015-07-30 07:11:55
阅读次数:
201
Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
...
分类:
其他好文 时间:
2015-07-29 19:27:15
阅读次数:
107
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are+, - and *.
Example 1
I...
分类:
其他好文 时间:
2015-07-28 23:10:46
阅读次数:
155
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain du...
分类:
其他好文 时间:
2015-07-28 23:09:23
阅读次数:
131
问题描述Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators...
分类:
其他好文 时间:
2015-07-28 12:21:44
阅读次数:
84
【046-Permutations(求排列)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,...
分类:
编程语言 时间:
2015-07-28 06:43:13
阅读次数:
129
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *.Example 1
Input:...
分类:
其他好文 时间:
2015-07-28 01:00:43
阅读次数:
108
Different Ways to Add ParenthesesGiven a string of numbers and operators, return all possible results from computing all the different possible ways t...
分类:
其他好文 时间:
2015-07-28 00:41:44
阅读次数:
117