码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果)
LA 3026 Period (strings)
Period Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description For each prefix of a given string S with N characters (...
分类:其他好文   时间:2015-07-21 12:46:50    阅读次数:86
Redis下载及安装部署
官网介绍:Redis is an open source advanced key-value store.It is often referred to as a data structure server since keys can contain strings,hashes,lists.....
分类:其他好文   时间:2015-07-21 01:17:08    阅读次数:141
Leetcode -- Day13
Question 1Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Firslty I wirte a very dire...
分类:其他好文   时间:2015-07-20 23:10:01    阅读次数:155
Gym 100712L Alternating Strings II(单调队列)
题目链接Alternating Strings II题意是指给出一个长度为n的01串,和一个整数k,要求将这个01串划分为很多子串(切很多刀),使得每个子串长度不超过k,且每个字串不是01交替出现的串(例如01, 10, 101, 010, 101010这些都是01交替出现的串),求最少需要切多少次...
分类:其他好文   时间:2015-07-20 22:55:20    阅读次数:211
#leetcode#One Edit Distance
Given two strings S and T, determine if they are both one edit distance apart. 分析:one edit distance,要么S,T长度相同, 只有一对不同char,那么只要跳过这对不同的char,应该能匹配完两个String的;...
分类:其他好文   时间:2015-07-20 19:46:52    阅读次数:107
HDU5284——水,strlen坑——wyh2000 and a string problem
Young theoretical computer scientist wyh2000 is teaching young pupils some basic concepts about strings.A subsequence of a stringsis a string that can...
分类:其他好文   时间:2015-07-20 15:52:23    阅读次数:87
1050. String Subtraction (20)
题目如下: Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given stri...
分类:其他好文   时间:2015-07-20 14:26:45    阅读次数:127
【LeetCode-面试算法经典-Java实现】【014-Longest Common Prefix(最长公共前缀)】
【014-Longest Common Prefix(最长公共前缀)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Write a function to find the longest common prefix string amongst an array of strings. 题目大意  写一个函数找出一个字串所数组中的最长的公共前缀。 解题思路  第一...
分类:编程语言   时间:2015-07-20 09:18:51    阅读次数:183
[LeetCode] Longest Palindrome 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-07-19 10:00:25    阅读次数:125
(简单) POJ 2406 Power Strings,扩展KMP。
DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think...
分类:其他好文   时间:2015-07-18 12:30:39    阅读次数:88
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!