【017-Letter Combinations of a Phone Number (电话号码上的单词组合)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a digit string, return all possible letter combinations that the number could represent.
A mapping...
分类:
编程语言 时间:
2015-07-21 09:11:42
阅读次数:
133
题目:
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"]...
分类:
编程语言 时间:
2015-07-20 13:07:47
阅读次数:
173
题目:
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],
...
分类:
编程语言 时间:
2015-07-18 12:37:37
阅读次数:
102
DescriptionGiven n different objects, you want to take k of them. How many ways to can do it?For example, say there are 4 items; you want to take 2 of...
分类:
其他好文 时间:
2015-07-18 02:02:17
阅读次数:
210
Wangpeng has N clothes, M pants and K shoes so theoretically he can have N×M×K different combinations of dressing.One day he wears his pants Nike, sho...
分类:
其他好文 时间:
2015-07-17 22:31:28
阅读次数:
137
问题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...
分类:
其他好文 时间:
2015-07-14 22:38:27
阅读次数:
162
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2015-07-14 20:25:31
阅读次数:
98
题目链接:https://leetcode.com/problems/generate-parentheses/
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a...
分类:
其他好文 时间:
2015-07-14 18:01:42
阅读次数:
106
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:
其他好文 时间:
2015-07-13 22:02:26
阅读次数:
123
题目:
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 unlim...
分类:
编程语言 时间:
2015-07-13 14:14:44
阅读次数:
313