Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-03-18 22:59:37
阅读次数:
170
problem:
Write a function to find the longest common prefix string amongst an array of strings.
寻找 0 ~n 个字符串的最长公共前缀
thinking:
(1)公共前缀很好理解,按位匹配即可
(2)很容易忘记处理0、1个字符串的情况。
code:
string prefi...
分类:
其他好文 时间:
2015-03-18 18:05:15
阅读次数:
112
jquery.roundabout.js文件/** * jQuery Roundabout - v2.4.2 * http://fredhq.com/projects/roundabout * * Moves list-items of enabled ordered and unordered l...
分类:
其他好文 时间:
2015-03-18 18:00:39
阅读次数:
220
Substring
时间限制:1000 ms | 内存限制:65535 KB
描述
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of i...
分类:
其他好文 时间:
2015-03-18 14:11:43
阅读次数:
118
Problem Description
Given n integers.
You have two operations:
U A B: replace the Ath number by B. (index counting from 0)
Q A B: output the length of the longest consecutive increasing subseque...
分类:
其他好文 时间:
2015-03-17 23:39:04
阅读次数:
161
题目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. Fo...
分类:
其他好文 时间:
2015-03-17 18:04:49
阅读次数:
134
problem:
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...
分类:
编程语言 时间:
2015-03-16 16:25:54
阅读次数:
155
Longest Common Prefix问题:Write a function to find the longest common prefix string amongst an array of strings.思路: 简单的string运算我的代码:public class Soluti....
分类:
其他好文 时间:
2015-03-15 18:11:46
阅读次数:
86
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-03-15 13:43:07
阅读次数:
134
??
1.3- Longest Substring Without Repeating Characters
Given a string,find the length of the longest substring without repeating characters. Forexample, the longest substring without repeating l...
分类:
其他好文 时间:
2015-03-14 18:40:32
阅读次数:
123