码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果
hdu3294---Girls' research
Problem Description One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two steps: First step: girls will write a long string (only c...
分类:其他好文   时间:2015-02-18 17:40:37    阅读次数:660
hdu3374---String Problem
Problem Description Give you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”, we can generate seven strings: String Rank SKYLONG 1 K...
分类:其他好文   时间:2015-02-17 21:06:58    阅读次数:152
POJ 2406 Power Strings(KMP)
题意:给定一个字符串,让你求出他最多由几个相同的连续子串连接而成。 和上一篇一样,上一题的弱化,不说了 代码(直接套了上一题) //5060 KB 110 ms C++ #include #include #include #define maxn 1000100 using namespace std; int len; char str[maxn]; int next[maxn]; vo...
分类:其他好文   时间:2015-02-17 21:06:09    阅读次数:150
PAT1061. Dating
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a min...
分类:其他好文   时间:2015-02-17 17:38:02    阅读次数:213
hdu1238---Substrings
Problem 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 g...
分类:其他好文   时间:2015-02-17 16:33:16    阅读次数:146
DP解Stringsobits
Stringsobits Kim Schrijvers Consider an ordered set S of strings of N (1 This set of strings is interesting because it is ordered andcontains all possible strings of length N that have L (1 Your...
分类:其他好文   时间:2015-02-16 15:40:40    阅读次数:127
【LeetCode从零单排】No67.AddBinary
题目Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".代码public class Solution { public String addBinary(String a, String b) { S...
分类:数据库   时间:2015-02-15 18:11:30    阅读次数:220
Codeforces Round #291 (Div. 2)---C. Watto and Mechanism
Watto, the owner of a spare parts store, has recently got an order for the mechanism that can process strings in a certain way. Initially the memory of the mechanism is filled with n strings. Then the...
分类:其他好文   时间:2015-02-15 15:14:32    阅读次数:306
165. Compare Version Numbers Leetcode Python
Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 You may assume that the version strings are non-empty and contain only digits and the . character...
分类:编程语言   时间:2015-02-15 09:27:02    阅读次数:219
PAT1050. String Subtraction
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 c...
分类:其他好文   时间:2015-02-14 16:11:18    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!