Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: A ...
分类:
其他好文 时间:
2016-08-10 00:53:11
阅读次数:
131
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135", return ["2 ...
分类:
其他好文 时间:
2016-08-09 20:47:30
阅读次数:
245
题目链接:http://lightoj.com/volume_showproblem.php?problem=1067 模板求C(n,m)%p, Lucas模板; ...
分类:
其他好文 时间:
2016-08-07 19:59:28
阅读次数:
167
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-07 06:20:38
阅读次数:
189
Given an integer array nums with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer ta ...
分类:
其他好文 时间:
2016-08-06 13:00:34
阅读次数:
540
Question:
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...
分类:
其他好文 时间:
2016-08-05 10:17:31
阅读次数:
122
Factor Combinations Problem: 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 in ...
分类:
其他好文 时间:
2016-08-05 06:36:48
阅读次数:
113
93. Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given ...
分类:
其他好文 时间:
2016-07-25 08:10:58
阅读次数:
186
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-07-23 01:57:48
阅读次数:
197
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-07-21 00:50:37
阅读次数:
327