码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
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 longe....
分类:其他好文   时间:2015-10-04 17:09:04    阅读次数:165
前端开发面试题整理(JS篇)
以下都是网上整理出来的JS面试题,答案仅供参考。/2,截取字符串abcdefg的efg//alert('abcdefg'.substring(4));//3,判断一个字符串中出现次数最多的字符,统计这个次数/*var str = 'asdfssaaasasasasaa';var json = {};...
分类:Web程序   时间:2015-10-04 15:58:08    阅读次数:385
32. Longest Valid Parentheses (Stack; DP)
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:其他好文   时间:2015-10-04 11:08:11    阅读次数:141
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...
分类:其他好文   时间:2015-10-04 00:21:09    阅读次数:211
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 lette....
分类:其他好文   时间:2015-10-02 06:35:32    阅读次数:197
LeetCode #5 Longest Palindromic Substring (M)
[Problem]Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique l...
分类:其他好文   时间:2015-10-02 00:11:38    阅读次数:194
正则表达式
1.search可以用来寻找字符串中的字母的位置。如果有则是返回的在字符串中的位置,如果没有的话则是返回-1。2.substring要传入两个参数,他是不包括结束位置的。3.split是用来分割字符串的。4.charAt里面传入数字来得到对应位置的字符。5.js中创建一个正则 var re = ne...
分类:其他好文   时间:2015-09-30 16:07:35    阅读次数:245
web worker
inline workerfunction worker() { setInterval(function() { postMessage({foo: "bar"}); }, 1000);}var code = worker.toString();code = code.substring...
分类:Web程序   时间:2015-09-30 11:01:31    阅读次数:160
Leetcode003---Longest Substring Without Repeating Characters0
Description:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeatin...
分类:其他好文   时间:2015-09-30 00:56:24    阅读次数:145
C#几个经常用到的字符串截取
一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.Sub...
分类:Windows程序   时间:2015-09-29 22:07:41    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!