题目要求: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
题目描述: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
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
题目描述: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
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
题目 题目很简单,就是写一个函数把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
Given two integers n and k, return all possible combinations of k numbers out of 1 … n....
分类:
其他好文 时间:
2015-02-06 18:57:02
阅读次数:
185
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
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
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