Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-03-30 22:49:58
阅读次数:
162
题目:
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and w...
分类:
其他好文 时间:
2015-03-30 16:27:29
阅读次数:
114
求最长字串,要求字串中的所有字母不重复 思路 设定head和tail两个指针,tail每往前移动一格,便检查tail和head之间的所有字母是否与tail指向的字母重复,如果重复则将head指向重复的后一格例如:abcdefdc,当前head指向a,tail指向f,当tail指向下一个d的时候扫描h...
分类:
其他好文 时间:
2015-03-30 12:54:25
阅读次数:
114
题目:leetcode
Longest Substring Without Repeating Characters
Given
a string, find the length of the longest substring without repeating characters. For example, the longest substring without repea...
分类:
编程语言 时间:
2015-03-29 18:08:07
阅读次数:
152
1.题目要求Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lett...
分类:
其他好文 时间:
2015-03-29 17:51:03
阅读次数:
123
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parentheses substring is "()", which ha...
分类:
其他好文 时间:
2015-03-29 13:41:53
阅读次数:
124
在这犯过错误,是js和java间的,特此记录:
java substring(start,end)表示从start,到end之间的字符串,包括start位置的字符但是不包括end位置的字符
js substr(start,length)表示从start位置开始取length个字符串
js substring(start,end)表示从start,到end之间的字符串,包括star...
分类:
编程语言 时间:
2015-03-28 21:48:06
阅读次数:
278
SQL Server基本函数1.字符串函数长度与分析用1,datalength(Char_expr)返回字符串包含字符数,但不包含后面的空格2,substring(expression,start,length)取子串,字符串的下标是从“1”,start为起始位置,length为字符串长度,实际应用...
分类:
数据库 时间:
2015-03-28 15:44:11
阅读次数:
134
阅读目录:不可变对象自定义不可变集合Net提供的不可变集合不可变优点不可变对象缺点不可变对象不可变(immutable): 即对象一旦被创建初始化后,它们的值就不能被改变,之后的每次改变都会产生一个新对象。var str="mushroomsir";str.Substring(0, 6)c#中的st...
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-22 10:40:52
阅读次数:
321