码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
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 example, If S = [1,2,3], a solution is: [ [3], [...
分类:其他好文   时间:2014-12-15 19:10:08    阅读次数:123
String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-12-15 19:07:22    阅读次数:181
all possible patterns for N russian squares
Question:Atraditionalrussionsquareismadeby4blocks,andhas7differentpatterns.GivenNblocks,howmanydifferentpatternswouldbe.N=1,P#=1N=2,P#=1N=3,P#=3N=4,P#=7.AssumeN=k,P#=PkthenwhenN=k+1,P#=foreachPinPk,appendonemoreblockaroundP,removedups.classPattern { List<..
分类:其他好文   时间:2014-12-15 10:34:54    阅读次数:150
String to Integer (atoi) -- leetcode
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-12-15 09:09:52    阅读次数:166
【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...
分类:其他好文   时间:2014-12-13 19:16:20    阅读次数:180
【LeetCode】Permutations
PermutationsGiven 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]...
分类:其他好文   时间:2014-12-13 14:59:31    阅读次数:175
leetcode------String to Integer (atoi)
标题:String to Integer (atoi)通过率:13.8难度:简单Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a...
分类:其他好文   时间:2014-12-12 23:29:08    阅读次数:237
[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...
分类:其他好文   时间:2014-12-11 00:12:47    阅读次数:297
【LeetCode】Subsets II 解题报告
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not con...
分类:其他好文   时间:2014-12-10 12:38:33    阅读次数:196
[leetcode] Permutations
PermutationsGiven 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]...
分类:其他好文   时间:2014-12-10 12:18:30    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!