码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
[LeetCode] Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the following unique pe...
分类:其他好文   时间:2014-08-12 10:17:03    阅读次数:142
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 co...
分类:其他好文   时间:2014-08-12 03:00:33    阅读次数:155
LeetCode--Decode Ways
其实本题和:http://www.geeksforgeeks.org/count-possible-decodings-given-digit-sequence/是类似的。但是这道题需要考虑错误情况。 1 class Solution { 2 public: 3 int numDecodin...
分类:其他好文   时间:2014-08-11 20:33:52    阅读次数:204
leetcode 刷题之路 77 Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], and [2,1...
分类:其他好文   时间:2014-08-11 17:49:32    阅读次数:201
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,1,2], and [3,2,1]. 原题链接:https://oj...
分类:其他好文   时间:2014-08-10 10:25:50    阅读次数:265
LeetCode :: Next Permutation
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...
分类:其他好文   时间:2014-08-08 02:06:05    阅读次数:207
Permutations II leetcode java
题目:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique....
分类:编程语言   时间:2014-08-08 01:54:55    阅读次数:292
String to Integer (atoi) leetcode java
题目: 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 be....
分类:编程语言   时间:2014-08-07 12:08:49    阅读次数:260
Scramble String leetcode java
题目:Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible represent....
分类:编程语言   时间:2014-08-07 05:11:29    阅读次数:334
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-08-06 14:30:21    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!