Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-11 18:25:40
阅读次数:
104
leetcode中有几道题使用同一个思路,大致是先维护一个窗口,每次只移动窗口左侧或者右侧的边界,然后针对这个窗口内的元素进行处理。这种方式使用两个指针,可以将问题的运行时间降到O(n)内。Longest Substring Without Repeating Characters:https://...
分类:
其他好文 时间:
2015-06-10 06:34:45
阅读次数:
412
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-09 16:59:44
阅读次数:
135
1. 题目:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example...
分类:
其他好文 时间:
2015-06-08 21:19:56
阅读次数:
106
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. For “...
分类:
其他好文 时间:
2015-06-08 17:32:43
阅读次数:
136
Time Limit:1000MS Memory Limit:10000KDescription As we all know, machine scheduling is a very classical problem in computer science and has been st...
分类:
系统相关 时间:
2015-06-08 00:49:21
阅读次数:
160
Well, there many ways to solve this problem. Let's first look at a naive solution.The basic idea is simple. Starting from the first character of the s...
分类:
其他好文 时间:
2015-06-07 21:31:03
阅读次数:
128
题目:
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...
分类:
其他好文 时间:
2015-06-06 14:57:54
阅读次数:
120
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-06 10:25:13
阅读次数:
115
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:
编程语言 时间:
2015-06-06 00:11:41
阅读次数:
136