码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
[LeetCode 78] Subsets
题目链接:subsets import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Given a set of distinct integers, S, return all possible subsets. Note: Elements in a su...
分类:其他好文   时间:2015-03-28 08:50:46    阅读次数:100
[LeetCode] 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-03-22 00:28:37    阅读次数:130
[LeetCode] Restore IP Addresses 回溯
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2015-03-20 01:15:53    阅读次数:186
Subsets II
https://leetcode.com/problems/subsets-ii/Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in ...
分类:其他好文   时间:2015-03-19 23:26:45    阅读次数:149
Subsets
https://leetcode.com/problems/subsets/Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:其他好文   时间:2015-03-19 21:53:20    阅读次数:167
Combinations
https://leetcode.com/problems/combinations/Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk=...
分类:其他好文   时间:2015-03-19 14:36:28    阅读次数:115
leetcode 题解 || Letter Combinations of a Phone Number 问题
problem: 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 belo...
分类:其他好文   时间:2015-03-19 11:30:42    阅读次数:138
[leetcode] Combinations
CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3.....
分类:其他好文   时间:2015-03-17 19:45:01    阅读次数:124
DFS解法的两道题 Leetcode 46 Permutations & Leetcode 78 Subset
Leetcode 78 SubsetGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The soluti...
分类:其他好文   时间:2015-03-17 11:47:34    阅读次数:165
leetcode------Subsets II
标题:Subsets II通过率:27.5难度:中等Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must b...
分类:其他好文   时间:2015-03-16 21:04:46    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!