码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
js截取文件名
str = 'C:\fakepath\ll.doc';str.substring(str.lastIndexOf("\\")+1,str.lastIndexOf(".")); //输出ll
分类:Web程序   时间:2015-11-02 01:33:19    阅读次数:250
LeetCode OJ: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...
分类:其他好文   时间:2015-11-02 00:00:09    阅读次数:277
[leetcode]Longest Palindromic Substring
题目链接:https://leetcode.com/problems/longest-palindromic-substring/输出最长的回文串 1 class Solution { 2 public: 3 int pre[22222]; 4 char x[22222]; 5 ...
分类:其他好文   时间:2015-10-31 17:14:56    阅读次数:182
Longest Valid Parentheses - LeetCode
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-10-31 14:19:03    阅读次数:109
HDU 5056 Boring count(BestCoder Round #11 (Div. 2))
Problem Description:You are given a string S consisting of lowercase letters, and your task is counting the number of substring that the number of eac...
分类:其他好文   时间:2015-10-30 20:22:11    阅读次数:169
H5 判断应用是否打开或是下载
(function () { var openUrl = window.location.search; try { openUrl = openUrl.substring(1, openUrl.length); } catch (e) { } var i...
分类:其他好文   时间:2015-10-30 12:06:14    阅读次数:198
sqlserver 常用函数(转)
1.字符串函数 :len(expression)返回给定字符串表达式的字符(而不是字节)个数,其中不包含尾随空格。datalength(Char_expr) 返回字符串包含字符数,但不包含后面的空格length(expression,variable)指定字符串或变量名称的长度。substring(...
分类:数据库   时间:2015-10-30 12:05:57    阅读次数:257
Longest Palindromic Substring
问题链接:https://leetcode.com/problems/longest-palindromic-substring/ Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there ...
分类:其他好文   时间:2015-10-30 02:21:57    阅读次数:199
Longest Substring Without Repeating Characters
问题链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeating characters. For example, the longe...
分类:其他好文   时间:2015-10-29 06:21:35    阅读次数:182
5.30 StringBuffer的截取功能
/* ?*?StringBuffer的截取功能:注意返回值类型不再是StringBuffer本身 ?*?public?String?substring(int?start) ?*?public?String?substring(int?start,int?end) ?*/ public?class?StringBufferD...
分类:其他好文   时间:2015-10-28 12:51:49    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!