Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:
其他好文 时间:
2015-07-11 12:07:21
阅读次数:
117
Given a set of distinct integers, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For ...
分类:
其他好文 时间:
2015-07-11 09:16:34
阅读次数:
150
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],
[1,3],
[1,4...
分类:
其他好文 时间:
2015-07-11 09:11:50
阅读次数:
107
题目:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input...
分类:
编程语言 时间:
2015-07-10 09:41:01
阅读次数:
181
Permutations
Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],
and [3,2,1]...
分类:
其他好文 时间:
2015-07-09 22:45:59
阅读次数:
154
http://www.geeksforgeeks.org/generate-all-possible-sorted-arrays-from-alternate-elements-of-two-given-arrays/Given two sorted arrays A and B, generate...
分类:
其他好文 时间:
2015-07-09 13:00:13
阅读次数:
120
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given “25525511135”,
return [“255.255.11.135”, “255.255.111.35”]. (O...
分类:
其他好文 时间:
2015-07-08 16:31:03
阅读次数:
117
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it a...
分类:
编程语言 时间:
2015-07-08 14:37:48
阅读次数:
227
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 duplicate...
分类:
其他好文 时间:
2015-07-08 12:57:07
阅读次数:
88
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit string “2...
分类:
其他好文 时间:
2015-07-07 19:36:09
阅读次数:
152