Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-09-18 14:40:43
阅读次数:
208
[leetcode]Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases....
分类:
其他好文 时间:
2014-09-17 23:24:22
阅读次数:
198
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 should pack your words in a greedy approach; that is,...
分类:
其他好文 时间:
2014-09-17 15:18:52
阅读次数:
201
原题地址:https://oj.leetcode.com/problems/valid-palindrome/题意:Given a string, determine if it is a palindrome, considering only alphanumeric characters an...
分类:
编程语言 时间:
2014-09-16 08:05:40
阅读次数:
239
记录最大的起始位置+hash
int lengthOfLongestSubstring(string s) {
map charMap;
int curLen, maxLen = 0,lastIndex = -1;
for (int i = 0; i < s.size(); i++)
{
if (charMa...
分类:
其他好文 时间:
2014-09-14 12:53:27
阅读次数:
158
做Web开发时经常涉及到页面之间的转跳,页面之间的转跳就会涉及到页面之间参数的传递,通过URL传递参数是常用的方法之一,但是微软 说:"Maximum URL length is 2,083 characters in Internet Explorer",...
分类:
其他好文 时间:
2014-09-10 12:50:40
阅读次数:
219
Just installed the KDE on my Ubuntu, and the Internet explorer comes with the KDE is the Konqueror, however the first time I was using the Konqueror found it cannot display the Chinese properly, all becomes gubbish characters, found the solution by google...
分类:
其他好文 时间:
2014-09-10 12:36:20
阅读次数:
253
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