码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
[leedcode 46] 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-07-11 12:07:21    阅读次数:117
Subsets
Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For ...
分类:其他好文   时间:2015-07-11 09:16:34    阅读次数:150
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-07-11 09:11:50    阅读次数:107
[LeetCode][Java] 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...
分类:编程语言   时间:2015-07-10 09:41:01    阅读次数:181
leetcoder 46-Permutations and 47-Permutations II
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]...
分类:其他好文   时间:2015-07-09 22:45:59    阅读次数:154
Generate all possible sorted arrays from alternate elements of two given sorted arrays
http://www.geeksforgeeks.org/generate-all-possible-sorted-arrays-from-alternate-elements-of-two-given-arrays/Given two sorted arrays A and B, generate...
分类:其他好文   时间:2015-07-09 13:00:13    阅读次数:120
LeetCode93: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.255.11.135”, “255.255.111.35”]. (O...
分类:其他好文   时间:2015-07-08 16:31:03    阅读次数:117
leetCode 31.Next Permutation (下一个字典序排序) 解题思路和方法
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 a...
分类:编程语言   时间:2015-07-08 14:37:48    阅读次数:227
LeetCode90:Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets.Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate...
分类:其他好文   时间:2015-07-08 12:57:07    阅读次数:88
LeetCode17: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 string “2...
分类:其他好文   时间:2015-07-07 19:36:09    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!