码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
Longest Substring Without Repeating Characters
题目三: Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters.For example, ...
分类:其他好文   时间:2015-06-23 22:59:27    阅读次数:112
在MySQL中拼SQL语句
例子如下:CREATETEMPORARYTABLENEW_TIME_CLIENT(UUIDVARCHAR(36),CLIENT_MAC VARCHAR(17),ONLINE_SECONDSINT)ENGINE=MEMORY;SET@SQL_NEW_TIME_CLIENT=CONCAT("INSERTINTONEW_TIME_CLIENTSELECTUUID,SUBSTRING(RVALUE,1,17)CLIENT_MAC,SUBSTRING(RVALUE,19) ONLINE_SECONDSFROM..
分类:数据库   时间:2015-06-23 15:55:25    阅读次数:175
Leetcode--easy系列2
#14 Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. 这个题求多个字符串的公共前缀,除了要考虑串空外,如果存在公共前缀,那么必定也是第一个串的前缀。 所以可以以第一个串为基准,比较其他串的前缀是否与第一个串相同。 c...
分类:其他好文   时间:2015-06-23 11:55:01    阅读次数:129
hdu 3530 Subsequence
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=3530SubsequenceDescriptionThere is a sequence of integers. Your task is to find the longest subsequence ...
分类:其他好文   时间:2015-06-22 22:02:05    阅读次数:177
Codeforces Beta Round #5 C. Longest Regular Bracket Sequence 栈/dp
C. Longest Regular Bracket SequenceTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/5/CDescriptionThis is yet anothe...
分类:其他好文   时间:2015-06-22 20:40:00    阅读次数:139
#5 Longest Palindromic Substring
原题链接:https://leetcode.com/problems/longest-palindromic-substring/ Given a string S, find the longest palindromic substring inS. You may assume that the maximum length of S is 1000, and ther...
分类:其他好文   时间:2015-06-21 14:33:22    阅读次数:119
Longest Palindromic Substring2015年6月20日
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2015-06-20 22:00:33    阅读次数:219
leetcode - Longest Palindromic Substring
题目: 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 exists one unique longest...
分类:其他好文   时间:2015-06-20 17:07:53    阅读次数:126
Maximum Depth of Binary Tree
Description:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the...
分类:其他好文   时间:2015-06-20 15:36:39    阅读次数:120
[转]O(n)回文子串算法 Manacher算法
这里,我介绍一下O(n)回文串处理的一种方法。Manacher算法.原文地址:http://zhuhongcheng.wordpress.com/2009/08/02/a-simple-linear-time-algorithm-for-finding-longest-palindrome-sub....
分类:编程语言   时间:2015-06-20 13:08:23    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!