DescriptionD Anti-Rhyme Pairs Input: Standard Input Output: Standard Output Often two words that rhyme also end in the same sequence of characters. We...
分类:
其他好文 时间:
2014-10-08 11:01:35
阅读次数:
261
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"]. (Order ...
分类:
其他好文 时间:
2014-10-08 10:45:25
阅读次数:
195
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2014-10-06 19:32:50
阅读次数:
173
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODE...
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:
其他好文 时间:
2014-10-05 17:44:58
阅读次数:
201
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-04 01:10:45
阅读次数:
200
一直对这种题比较没把握. 没有思路.i1,000,000.2234,333.999define valid(String s,boolean last,boolean first)1.先s.trim();if string==null or string.length==0 return false...
分类:
其他好文 时间:
2014-10-03 10:28:04
阅读次数:
283
一、问题描述Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another ....
分类:
编程语言 时间:
2014-10-03 01:19:13
阅读次数:
227
Unfortunately, I have not found a proper way to type in Chinese characters!When i want to install new software on my pear os8 it shows that "Requires ...
分类:
其他好文 时间:
2014-10-03 00:16:23
阅读次数:
176