1、IE6 幽灵文本(Ghost Text bug)在我写本文之前,我遇到了这个bug。它相当的古怪和滑稽。一块不知哪来的重复的文本,被IE6显示在靠近原文本的下面。(译注:也可以参看Explorer 6 Duplicate Characters Bug获得bug演示)。我无法解决它,所以我搜索它,...
分类:
其他好文 时间:
2014-10-14 13:38:28
阅读次数:
203
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.You shoul...
分类:
其他好文 时间:
2014-10-14 07:58:57
阅读次数:
237
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-12 17:16:38
阅读次数:
155
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
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