码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
LeetCode 047 Permutations II
题目要求:Permutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the f...
分类:其他好文   时间:2015-02-07 21:30:03    阅读次数:117
LeetCode 017 Letter Combinations of a Phone Number
题目描述:Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of d...
分类:其他好文   时间:2015-02-07 17:07:13    阅读次数:191
hdu 3473 Minimum Sum 再来一波划分树,对划分树累觉不爱。
Problem Description You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make as small as possible! Input The first line is an integer T (T <= 10), indicat...
分类:其他好文   时间:2015-02-07 14:39:36    阅读次数:205
LeetCode 008 String to Integer (atoi)
题目描述:String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge,...
分类:其他好文   时间:2015-02-07 14:25:58    阅读次数:127
LeetCode Word Break II
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For example, given s = “catsanddo...
分类:其他好文   时间:2015-02-07 13:12:11    阅读次数:188
【LeetCode从零单排】No.8 String to Integer (丧心病狂的一道题)
题目       题目很简单,就是写一个函数把string转换成int,但是通过率只有可怜的11%,难点是要考虑所有情况,特别是int溢出边界,反正我是写了2个小时还没解决,先放到这,有空接着搞,现在应该还有最后一个bug。Implement atoi to convert a string to an integer.Hint: Carefully consider all possible i...
分类:其他好文   时间:2015-02-07 11:43:19    阅读次数:147
[LeetCode]77.Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 … n....
分类:其他好文   时间:2015-02-06 18:57:02    阅读次数:185
[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...
分类:其他好文   时间:2015-02-06 11:12:30    阅读次数:95
sentence structures经典句型
1:Using  A makes it possible to do B A and B are both nouns,and you can trade them for any noun you want. For example, using a telescope makes it posiible  to see things that are far away in the uni...
分类:其他好文   时间:2015-02-06 09:34:41    阅读次数:159
SGU[113] Nearly prime numbers
Description描述Nearly prime number is an integer positive number for which it is possible to find such primesP1andP2that given number is equal toP1*P2. ...
分类:其他好文   时间:2015-02-05 14:53:15    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!