码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
经典SQL语句大全之基本函数
SQL Server基本函数1.字符串函数长度与分析用1,datalength(Char_expr)返回字符串包含字符数,但不包含后面的空格2,substring(expression,start,length)取子串,字符串的下标是从“1”,start为起始位置,length为字符串长度,实际应用...
分类:数据库   时间:2015-03-28 15:44:11    阅读次数:134
探索c#之不可变数据类型
阅读目录:不可变对象自定义不可变集合Net提供的不可变集合不可变优点不可变对象缺点不可变对象不可变(immutable): 即对象一旦被创建初始化后,它们的值就不能被改变,之后的每次改变都会产生一个新对象。var str="mushroomsir";str.Substring(0, 6)c#中的st...
分类:Windows程序   时间:2015-03-28 15:39:57    阅读次数:193
Codeforces Round #165 (Div. 2)---D. Greenhouse Effect
Emuskald is an avid horticulturist and owns the world’s longest greenhouse — it is effectively infinite in length.Over the years Emuskald has cultivated n plants in his greenhouse, of m different plant...
分类:其他好文   时间:2015-03-28 14:24:52    阅读次数:135
leetcode4 ---Longest Substring Without Repeating Characters
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
LeetCode Algorithm 05
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-22 00:18:36    阅读次数:134
mysql 检查字符串是否包含子串
1、使用substring_index(src,target,index) 从src的开头查找第index个target。返回的substring为从src的开头到第num个target这段字符串。比如 substring_index('absscdessfss','ss',1) 返回ab subs...
分类:数据库   时间:2015-03-21 22:40:44    阅读次数:252
LeetCode Algorithm 03
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-03-21 21:12:41    阅读次数:150
uva 10285 Longest Run on a Snowboard (记忆化搜索)
uva 10285 Longest Run on a Snowboard题目大意:给出一张n*m的雪地地图,每格标注的是该点的高度。从地势高的地方可以滑到地势低的地方(只能上下左右滑),问最长的滑雪距离。解题思路:逐一访问各点,若该点没有被访问过,则进行DFS找出该点为滑雪起始点的最长滑雪距离,用dp数组记录,若该点已被访问过,则返回其对应的dp数组记录的值。#include #i...
分类:其他好文   时间:2015-03-21 20:02:53    阅读次数:158
Leetcode: Longest Common Prefix
题目: Write a function to find the longest common prefix string amongst an array of strings. 即求给定的一组字符串的公共前缀。思路分析: 一个一个寻找前缀,先比较第一个和第二个,找到公共前缀,然后公共前缀和第三个比较,寻找公共前缀,以此类推。C++参考代码:class Solution { public:...
分类:其他好文   时间:2015-03-21 20:01:49    阅读次数:173
[JS做LeetCode] Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters </htm
分类:Web程序   时间:2015-03-21 18:29:41    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!