Longest Valid Parentheses
Total Accepted: 14818 Total
Submissions: 75749My Submissions
Given a string containing just the characters '(' and ')',
find the length of the longest valid (w...
分类:
其他好文 时间:
2014-09-09 13:18:18
阅读次数:
166
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-09-09 11:49:38
阅读次数:
167
用CI框架时,有时候会遇到这么一个问题,打开网页,只显示 Disallowed Key Characters 错误提示。有人说 url 里有非法字符。但是确定 url 是纯英文的,问题还是出来了。但清空浏览器历史记录和cookies后。 刷新就没问题了。有时候。打开不同的浏览器。有的浏览器会有问题。...
分类:
其他好文 时间:
2014-09-07 22:25:05
阅读次数:
226
Valid Parentheses
Total Accepted: 17916 Total
Submissions: 63131My Submissions
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input stri...
分类:
其他好文 时间:
2014-09-07 16:03:05
阅读次数:
168
Length of Last Word
Total Accepted: 17518 Total
Submissions: 59526My Submissions
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the lengt...
分类:
其他好文 时间:
2014-09-07 16:02:15
阅读次数:
197
Valid Sudoku
Total Accepted: 13142 Total
Submissions: 47070My Submissions
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially fi...
分类:
其他好文 时间:
2014-09-07 13:33:35
阅读次数:
182
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-09-07 12:15:55
阅读次数:
292
PAT 1084 Broken Keyboard题目:On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those...
分类:
其他好文 时间:
2014-09-07 10:54:05
阅读次数:
234
递归算法bool valid(vector &res, int r) { int nCol = res.size(); for(int i=0;i res, int &nCount) { if (l == n) { ...
分类:
其他好文 时间:
2014-09-06 23:44:14
阅读次数:
340