Problem
Given a list of space separated words, reverse the order of the words. Each line of text contains L letters and W words.
A line will only consist of letters and space characters. There will...
分类:
其他好文 时间:
2014-10-12 13:11:28
阅读次数:
133
Problem
The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a message to your friend using a sequence of keypresses t...
分类:
其他好文 时间:
2014-10-12 12:54:58
阅读次数:
163
用CI框架时,有时候会遇到这么一个问题,打开网页,只显示 Disallowed Key Characters 错误提示。有人说 url 里有非法字符。但是确定 url 是纯英文的,问题还是出来了。但清空浏览器历史记录和cookies后。 刷新就没问题了。有时候。打开不同的浏览器。有的浏览器会有问题。...
分类:
其他好文 时间:
2014-10-12 12:48:27
阅读次数:
182
这题看起来挺简单的,就是存一个哈希表,然后依次遍历整个字符串,遇到前面有过的字符的时候,就该停止当前计数,新的子串应该从发现该字符的位置的下一位置开始。我开始写了一个简单的写法,发现超时了: if (s.empty()) return 0; if (s.length() == 1) retur.....
分类:
其他好文 时间:
2014-10-10 14:28:10
阅读次数:
160
Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way:
qwertyuiop
asdfghjkl;
zxcvbnm,./
Unfortunately Mole is blind, ...
分类:
其他好文 时间:
2014-10-10 02:36:33
阅读次数:
315
[leetcode]
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring....
分类:
其他好文 时间:
2014-10-09 17:06:08
阅读次数:
187
之前因为重转系统,导致我的weblogic和myeclipse都要重装。重装之后,出现了问题,我是按照weblogic破解版的步骤来的,但还是报如下错误:
Unable to start WebLogic Server!
Error: license signature validation error.
Please make sure you have a valid license.b...
分类:
系统相关 时间:
2014-10-09 16:05:28
阅读次数:
394
Problem:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating le...
分类:
其他好文 时间:
2014-10-09 13:49:13
阅读次数:
213
题目描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...
分类:
其他好文 时间:
2014-10-09 02:29:17
阅读次数:
178
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th...
分类:
其他好文 时间:
2014-10-08 11:12:55
阅读次数:
249