Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-11-23 14:21:58
阅读次数:
205
用read4实现readn...至调用一次,感觉怎么搞都可以。。。估计这个题有II就是调用多次了。。。感觉多次勇哥buffer存下多读的那部分就好了。。。// Forward declaration of the read4 API.int read4(char *buf);class Soluti...
分类:
其他好文 时间:
2014-11-22 00:36:13
阅读次数:
259
Longest Valid ParenthesesGiven a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses sub...
分类:
其他好文 时间:
2014-11-21 20:31:10
阅读次数:
235
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:
其他好文 时间:
2014-11-21 14:00:49
阅读次数:
172
ProblemYou know a password is well-ordered string. Well-ordered string means that the order of the characters is in an alphabetical increasing order. ...
分类:
其他好文 时间:
2014-11-21 06:55:50
阅读次数:
137
(The record length is the number of characters, including spaces, in a data line.) If your data lines are long, and it looks like SAS is not reading a...
分类:
其他好文 时间:
2014-11-20 23:31:05
阅读次数:
1331
传送门:点击打开链接
题目大意:
对一个数组有2种操作。
1:左移,将给定的几个位置左移。
2:求区间最小值。
解题思路:
左移。。。呵呵 么见过。怎么搞。再读读题。然后惊讶的发现。Each operation is formatted as a string having no more than 30 characters
那就好办了。弄成单点更新就OK了!...
分类:
其他好文 时间:
2014-11-19 18:47:17
阅读次数:
148
Question:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close...
分类:
其他好文 时间:
2014-11-19 10:33:46
阅读次数:
142
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
编程语言 时间:
2014-11-19 07:08:44
阅读次数:
197
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring
without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-11-19 01:35:20
阅读次数:
199