码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
[leetcode]Letter Combinations of a Phone Number @ Python
原题地址:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/题意:Given a digit string, return all possible letter combinations that the ...
分类:编程语言   时间:2014-06-10 16:40:57    阅读次数:223
【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...
分类:其他好文   时间:2014-06-10 10:52:42    阅读次数:192
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...
分类:其他好文   时间:2014-06-10 08:42:11    阅读次数:184
projecteuler---->problem=24----Lexicographic permutations
问题描述: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabeti...
分类:其他好文   时间:2014-06-10 06:13:21    阅读次数:299
[LeetCode] Palindrome Partition [11]
题目:Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. 解题思路: 回文划分,题目意思是给一个字符串,找出将字符串划分为一系列回文子串的各种可能组合。例如,一个子串“aab“,你需要返回["aa","b"],["a","a","b"]。这个题目的解法也是非常的典型---循环加递归,...
分类:其他好文   时间:2014-06-09 23:24:11    阅读次数:256
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.3...
分类:其他好文   时间:2014-06-08 10:37:47    阅读次数:273
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],...
分类:其他好文   时间:2014-06-08 08:08:29    阅读次数:294
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 c...
分类:其他好文   时间:2014-06-08 05:32:21    阅读次数:196
POJ 1573 Robot Motion.
Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are  ...
分类:其他好文   时间:2014-06-08 04:38:32    阅读次数:386
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. ...
分类:其他好文   时间:2014-06-08 04:01:05    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!