str = 'C:\fakepath\ll.doc';str.substring(str.lastIndexOf("\\")+1,str.lastIndexOf(".")); //输出ll
分类:
Web程序 时间:
2015-11-02 01:33:19
阅读次数:
250
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
题目链接: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
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
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
(function () { var openUrl = window.location.search; try { openUrl = openUrl.substring(1, openUrl.length); } catch (e) { } var i...
分类:
其他好文 时间:
2015-10-30 12:06:14
阅读次数:
198
1.字符串函数 :len(expression)返回给定字符串表达式的字符(而不是字节)个数,其中不包含尾随空格。datalength(Char_expr) 返回字符串包含字符数,但不包含后面的空格length(expression,variable)指定字符串或变量名称的长度。substring(...
分类:
数据库 时间:
2015-10-30 12:05:57
阅读次数:
257
问题链接: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
问题链接: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
/*
?*?StringBuffer的截取功能:注意返回值类型不再是StringBuffer本身
?*?public?String?substring(int?start)
?*?public?String?substring(int?start,int?end)
?*/
public?class?StringBufferD...
分类:
其他好文 时间:
2015-10-28 12:51:49
阅读次数:
273