码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
Maximum Depth of Binary Tree 树的最大深度
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-11-19 23:46:55    阅读次数:247
做几个leetcode数组题二
1.Longest Consecutive Sequence Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecu...
分类:编程语言   时间:2014-11-19 22:27:00    阅读次数:447
sql 关键字的用法
coalesce( T.GoodsCode,'0') 若 T.GoodsCode 为NULL 这 用0替换round(S.SaleEarning,2) 保留两位小数SUBSTRING(zb.accTime,9,2) 截取字符 从第9个开始截取2个cast(SUBSTRING('11111111111...
分类:数据库   时间:2014-11-19 07:06:39    阅读次数:366
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...
分类:其他好文   时间:2014-11-19 01:35:20    阅读次数:199
LeetCode: Longest Common Prefix 解题报告
Longest Common Prefix Total Accepted: 24665 Total Submissions: 92370My SubmissionsQuestionSolutionWrite a function to find the longest common prefix s...
分类:其他好文   时间:2014-11-18 23:35:50    阅读次数:182
查询url包含的字符串参数(js高程笔记)
unction getArgs() { var args = {}; //创建保存数据的对象 var qs = location.search.length > 0 ? location.search.substring(1) : ''; //取得查询字符串并去掉开头的问号 var items = qs.split('&'); //按&字符串拆分数组 var item = null, name = null, value = null; //逐个将每一项添加到args对象中...
分类:Web程序   时间:2014-11-18 14:46:49    阅读次数:149
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 fo...
分类:其他好文   时间:2014-11-17 22:29:25    阅读次数:242
JavaScript截取中英文字符串
有时在显示某段文字的时候,可能会太长,影响我们页面的显示效果。如果仅是英文,那么我们可以用String.substring(start, end)函数就已经够用了。但是通常我们都会遇到既有英文,又有汉字的情况。而汉字是占用2个字节的,如果用String.substring(start, end)截取...
分类:编程语言   时间:2014-11-17 21:18:11    阅读次数:184
TOJ 3517 The longest athletic track
3517.The longest athletic trackTime Limit:1.0 Seconds Memory Limit:65536KTotal Runs:880 Accepted Runs:342After a long time of algorithm training, we w...
分类:其他好文   时间:2014-11-17 11:59:05    阅读次数:270
POJ 2533-Longest Ordered Subsequence(DP)
Longest Ordered Subsequence Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 34454   Accepted: 15135 Description A numeric sequence of ai is ordered if a1 a2 ...
分类:其他好文   时间:2014-11-16 18:41:55    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!