码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果
Longest Palindromic Substring——LeetCode
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-04-08 00:54:17    阅读次数:113
POJ1226---Substrings(后缀数组+二分)
Description You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given str...
分类:编程语言   时间:2015-04-07 21:52:51    阅读次数:169
SPOJ687---REPEATS - Repeats(后缀数组+RMQ)
A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, the strings = abaabaabaabais a (4,3)-repeat with t = aba as its seed...
分类:编程语言   时间:2015-04-07 21:48:36    阅读次数:170
#5 Longest Palindromic Substring
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-04-07 21:31:44    阅读次数:120
Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2015-04-07 17:01:07    阅读次数:160
Codeforces Round #112 (Div. 2) C Another Problem on Strings
题目链接:Codeforces Round #112 (Div. 2) C Another Problem on Strings 题意:给出一个只含0,1的序列,求序列中和为n的子序列有多少个。 思路:预处理出序列的前缀和,然后枚举序列时,记录(vis)该位置之前已有的前缀和,再查询(sum[i]-n)的个数,即以该位置为结束的子序列和为n的个数。 注意:vis数组中0应该始终存在,初始化v...
分类:其他好文   时间:2015-04-07 09:58:37    阅读次数:146
codeforces 336D Vasily the Bear and Beautiful Strings(组合数学)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudVasily the Bear and Beautiful StringsVasily the Bear lovesbeautifulstrings. Stringsisbeautifulif it me...
分类:其他好文   时间:2015-04-07 00:34:09    阅读次数:148
Palindrome Partitioning
https://leetcode.com/problems/palindrome-partitioning/Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all...
分类:其他好文   时间:2015-04-06 15:23:49    阅读次数:112
[LeetCode] Multiply Strings 字符串相乘
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2015-04-06 07:38:38    阅读次数:146
redis介绍与安装
1.redis特点:非关系型的,分布式的,开源的,水平可扩展的,主从复制2.处理超大量数据;运行在便宜的PC集群上,高并发读写,海量数据的高效存储和访问对数据的高可扩展性和高可用性3.键值式存储【Strings,hashes,lists,sets,sortedsets】4.支持push/pop;add/remove以及排序,..
分类:其他好文   时间:2015-04-06 06:32:12    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!