码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果
Multiply Strings leetcode java
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:编程语言   时间:2014-08-04 13:58:57    阅读次数:285
Add Binary Leetcode java
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".题解:二进制加法都是从最低位(从右加到左)。所以对两个字符串要从最后一位开始加,....
分类:编程语言   时间:2014-08-04 06:13:36    阅读次数:291
ZOJ 1633 Big String
Big String Time Limit: 2 Seconds      Memory Limit: 65536 KB We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). R...
分类:其他好文   时间:2014-08-02 21:02:04    阅读次数:291
hdu 1501 Zipper (dfs+记忆化搜索)
Zipper Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6491    Accepted Submission(s): 2341 Problem Description Given three strings...
分类:其他好文   时间:2014-08-02 21:01:44    阅读次数:297
UVA 10298 - Power Strings(KMP)
UVA 10298 - Power Strings 题目链接 题意:本意其实就是,给定一个字符串,求出最小循环节需要几次循环出原字符串 思路:利用KMP中next数组的性质,n - next[n]就是最小循环节,然后n / 循环节就是答案 代码: #include #include const int N = 1000005; char str[N]; int ...
分类:其他好文   时间:2014-08-02 18:21:43    阅读次数:282
ZOJ 1642 Match for Bonus(dp)
Match for Bonus Time Limit: 2 Seconds      Memory Limit: 65536 KB Roy played a game with his roommates the other day.  His roommates wrote 2 strings of characters, and gave each character a b...
分类:其他好文   时间:2014-08-02 18:20:33    阅读次数:256
【HackerRank】 The Full Counting Sort
In this challenge you need to print the data that accompanies each integer in a list. In addition, if two strings have the same integers, you need to ...
分类:其他好文   时间:2014-08-01 22:40:42    阅读次数:323
[leetcode]Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.编程珠玑中的一道题,书中的解法很巧妙,我就直接搬来用了,时...
分类:其他好文   时间:2014-08-01 22:37:32    阅读次数:162
Leetcode--Anagrams
Problem Description: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 分析:题目要求输出找出所有在字符串数组中的变形词,变形词的意思是指单词由相同的字母构成,只是字母在单词中的顺序...
分类:其他好文   时间:2014-08-01 16:09:01    阅读次数:164
Leetcode--Multiply Strings
Problem Description: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 分析:两个string相乘...
分类:其他好文   时间:2014-08-01 16:06:01    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!