https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/http://fisherlei.blogspot.com/2012/12/leetcode-longest-substring-without.htmlpublicclassSolution{
publicintlengthOfLongestSubstring(Strings){
if(s==null||s.isEmpty())
return0;/..
分类:
其他好文 时间:
2015-01-02 16:16:01
阅读次数:
119
https://oj.leetcode.com/problems/longest-palindromic-substring/http://fisherlei.blogspot.com/2012/12/leetcode-longest-palindromic-substring.htmlpublicclassSolution{
publicStringlongestPalindrome(Strings){
//SolutionA:
returnlongestPalindrome_Center(s);
}
..
分类:
其他好文 时间:
2015-01-02 16:15:08
阅读次数:
122
https://oj.leetcode.com/problems/longest-common-prefix/http://fisherlei.blogspot.com/2012/12/leetcode-longest-common-prefix.htmlpublicclassSolution{
publicStringlongestCommonPrefix(String[]strs)
{
//Validations
if(strs==null||strs.length==0)
return"";
if(s..
分类:
其他好文 时间:
2015-01-02 16:13:25
阅读次数:
103
1.页面2.JS//只能输入整数 function InputNumber(e) { e.value = e.value.replace(/\D/g, ""); if (e.value.substring(0, 1) == "0") { e.value = "0"; }}//只能输入浮点数 fun....
分类:
Web程序 时间:
2015-01-02 15:51:25
阅读次数:
228
1.查看表结构DESC TableName;2.查看表创建语句SHOW CREATE TABLE TableName3.连接字符串CONCAT(r.USER_ID,”:")4.截取字符串RIGHT(r.CARD_ID,6)LEFT(r.CARD_ID,6)substring(str, pos, le...
分类:
数据库 时间:
2015-01-02 06:20:46
阅读次数:
190
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-01-01 21:10:28
阅读次数:
149
Palindrome Partitioning IIGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a p...
分类:
其他好文 时间:
2015-01-01 16:00:58
阅读次数:
164
Given two strings, find the longest comment subsequence (LCS).Your code should return the length of LCS.ExampleFor "ABCD" and "EDCA", the LCS is "A" (...
分类:
其他好文 时间:
2015-01-01 00:12:17
阅读次数:
122
Given two strings, find the longest common substring.Return the length of it.NoteThe characters in substring should occur continiously in original str...
分类:
其他好文 时间:
2015-01-01 00:01:16
阅读次数:
339
前两篇博客《C# 之 字符串截取--Substring》和《C# 之 字符串截取--Split》分别给大家介绍了Substring函数和Split函数,同时也实现了将"所属机构名称/教师姓名/课程类型/课程名称"中的所属机构名称,教师姓名,课程类型,课程名称分别截取出来的功能。今天又来给大家介绍一下怎么用正则表达式实现这个功能。
Regex.Match方法:在输入字符串中...