码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
[leetcode] Letter Combinations of a Phone Number
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:其他好文   时间:2015-01-13 14:03:28    阅读次数:226
LeetCode--Subsets
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2015-01-13 10:35:09    阅读次数:181
LeetCode--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], [1,4], ]...
分类:其他好文   时间:2015-01-13 08:58:28    阅读次数:117
Leetcode: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,...
分类:其他好文   时间:2015-01-12 17:31:04    阅读次数:164
[C++]LeetCode: 87 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:D...
分类:编程语言   时间:2015-01-11 14:56:20    阅读次数:236
Combinations
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-01-11 00:54:09    阅读次数:242
【leetcode】Permutations II
Permutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the follow...
分类:其他好文   时间:2015-01-10 17:51:39    阅读次数:272
[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
Next Permutation -- leetcode
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possible o...
分类:其他好文   时间:2015-01-09 14:22:04    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!