码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
Problem Palindrome Partitioning
Problem Description:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ...
分类:其他好文   时间:2014-07-07 16:02:55    阅读次数:259
Problem Longest Consecutive Sequence
Problem Description:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1...
分类:其他好文   时间:2014-07-07 15:54:24    阅读次数:193
Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-07-07 15:34:56    阅读次数:160
js 保留两位小数
1. 最笨的办法.......function get() { var s = 22.127456 + ""; var str = s.substring(0,s.indexOf(".") + 3); alert(str); }2. 正则 效果不错3. 他就比较聪明了.....4.会用新鲜东西的.....
分类:Web程序   时间:2014-07-03 10:39:46    阅读次数:205
String的使用
String的常用方法方法说明Anchor()创建html锚Concat()把字符串连接起来indexOf()查找字符出现的位置lastIndexOf()查找最后出现字符charAt()返回指定位置的字符Substring()截取字符串...
分类:其他好文   时间:2014-07-02 00:49:45    阅读次数:315
JS截取字符串substr 和 substring方法的区别
substr 方法返回一个从指定位置开始的指定长度的子字符串。stringvar.substr(start [, length ])参数stringvar必选项。要提取子字符串的字符串文字或 String 对象。start必选项。所需的子字符串的起始位置。字符串中的第一个字符的索引为 0。lengt...
分类:Web程序   时间:2014-07-01 16:20:58    阅读次数:253
LeetCode:Longest Valid Parentheses
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 "()...
分类:其他好文   时间:2014-07-01 09:09:06    阅读次数:156
Longest Palindromic Substring
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...
分类:其他好文   时间:2014-06-30 22:43:45    阅读次数:294
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 consecutive elements sequence...
分类:其他好文   时间:2014-06-29 22:16:48    阅读次数:239
Minimum Window Substring
题目 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum wi...
分类:Windows程序   时间:2014-06-29 20:38:14    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!