码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
C# SQLserver数据库图片存取
#region 数据库图片存取 /// /// 导入图片到数据库 /// /// public void Import(string filePath) { string fileName = filePath.Substring(filePath.LastIndexOf(...
分类:数据库   时间:2015-08-25 23:55:38    阅读次数:163
POJ 题目3415 Common Substrings(后缀数组+栈,求可以匹配到的长度大于k的公共子串个数)
Common Substrings Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 8471   Accepted: 2798 Description A substring of a string T is defined as: T(i, k)=TiTi+...
分类:编程语言   时间:2015-08-25 21:57:13    阅读次数:172
LeetCode-Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the...
分类:其他好文   时间:2015-08-25 20:59:06    阅读次数:112
《Java实战开发经典》第五章5.6
package five; //第五章练习6 public class Six { public static void main(String[] args) { String str1=”Java技术学习班20070326”; System.out.println(str1.substring(9)); String str2=”MLDN JAVA”;...
分类:编程语言   时间:2015-08-25 16:55:38    阅读次数:117
leetcode3:Longest Substring Without Repeating Characters
public int LengthOfLongestSubstring(string s) { Queue queue=new Queue(); int max=0; for(int i=0;i<s.Length;i++) { if(queue.Contain...
分类:其他好文   时间:2015-08-21 23:14:27    阅读次数:148
LeetCode "Longest Substring with At Most Two Distinct Characters"
A typical sliding window solution.class Solution { int rec[26]; // for a-z int rec1[26]; // for A-Z int cnt; int &getCnt(char c) ...
分类:其他好文   时间:2015-08-21 15:08:55    阅读次数:146
[LeetCode#30]Substring with Concatenation of All Words
Problem:https://leetcode.com/problems/substring-with-concatenation-of-all-words/You are given a string,s, and a list of words,words, that are all of t...
分类:其他好文   时间:2015-08-21 01:41:06    阅读次数:173
leetcode:Substring with Concatenation of All Words
Substring with Concatenation of All Words You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation...
分类:其他好文   时间:2015-08-20 19:09:31    阅读次数:127
mssql SUBSTRING和charindex的用法
在工作中用到的例子:select * FROM [CSGDC.DataETLDB].[dbo].[StrategiesList] where strategy_name like '%基建系统%' and SUBSTRING(strategy_name,charindex('_',strat...
分类:数据库   时间:2015-08-20 18:32:34    阅读次数:132
Java replace 和 replaceAll
Java String 的replace 和replaceAll 都是用来替换srcString的subString,但是有些不同的是,replace的参数是字符或者字符串,而replaceAll的参数可以是正则表达式。 public?String?replace?(Char?old...
分类:编程语言   时间:2015-08-20 13:30:42    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!