题目三: 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
例子如下: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
#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
题目连接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
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
原题链接: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
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
题目:
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
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算法.原文地址:http://zhuhongcheng.wordpress.com/2009/08/02/a-simple-linear-time-algorithm-for-finding-longest-palindrome-sub....
分类:
编程语言 时间:
2015-06-20 13:08:23
阅读次数:
192