码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
[C++]LeetCode: 83 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], [1,3], ...
分类:编程语言   时间:2015-01-10 11:20:00    阅读次数:280
[LeetCode#93]Restore IP Addresses
The problem:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",r...
分类:其他好文   时间:2015-01-10 01:03:04    阅读次数:318
LeetCode--Letter Combinations of a Phone Number
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 st...
分类:其他好文   时间:2015-01-08 22:51:58    阅读次数:270
【leetcode】 Generate Parentheses (middle)☆
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2015-01-08 17:34:58    阅读次数:159
【leetcode】 Letter Combinations of a Phone Number(middle)
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-01-06 15:03:38    阅读次数:157
LeetCode Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2015-01-05 23:22:28    阅读次数:138
LeetCode:Combination Sum
题目描述: 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 unl...
分类:其他好文   时间:2015-01-05 13:07:20    阅读次数:113
Leetcode Letter Combinations of a Phone Number
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-01-05 00:30:36    阅读次数:186
[LeetCode]77 Combinations
https://oj.leetcode.com/problems/combinations/http://blog.csdn.net/linhuanmars/article/details/21260217publicclassSolution{ publicList<List<Integer>>combine(intn,intk) { List<List<Integer>>results=newArrayList<>(); help(n,k,0,n..
分类:其他好文   时间:2015-01-04 19:34:42    阅读次数:125
【leetcode】Restore IP Addresses
Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"255255...
分类:其他好文   时间:2015-01-03 11:49:35    阅读次数:178
963条   上一页 1 ... 70 71 72 73 74 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!