码迷,mamicode.com
首页 >  
搜索关键字:isomorphic strings    ( 3304个结果)
791. Custom Sort String字符串保持字母一样,位置可以变
[抄题]: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want ...
分类:其他好文   时间:2018-08-05 00:29:18    阅读次数:157
ZOJ1633 Big String(递推)
ZOJ1633 Big String Time Limit: 2 Seconds Memory Limit: 65536 KB Description We will construct an infinitely long string from two short strings: A = "^ ...
分类:其他好文   时间:2018-08-02 20:51:34    阅读次数:174
双射 - hash去重
题目描述Two undirected simple graphs and where are isomorphic when there exists a bijection on V satisfying if and only if {x, y} ∈ E2.Given two graphs an ...
分类:其他好文   时间:2018-08-01 22:13:27    阅读次数:169
LeetCode - 67. Add Binary(4ms)
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:其他好文   时间:2018-07-31 23:39:43    阅读次数:204
Codeforces 1012D AB-Strings 贪心
原文链接https://www.cnblogs.com/zhouzhendong/p/CF1012D.html 题目传送门 - CF1012D 题意 给定字符串 $s,t$ ,其中只包含小写字母 $a$ 和 $b$ ,而且 $a$ 和 $b$ 至少在任意一个字符串中各出现一次。 现在允许你执行一种操 ...
分类:其他好文   时间:2018-07-31 22:02:10    阅读次数:249
poj2406Power Strings
链接:http://poj.org/problem?id=2406 Power Strings Time Limit: 3000MS Memory Limit: 65536K Description Given two strings a and b we define a*b to be thei ...
分类:其他好文   时间:2018-07-31 17:23:53    阅读次数:139
205. Isomorphic Strings
问题描述: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occ ...
分类:其他好文   时间:2018-07-31 11:18:12    阅读次数:142
Codeforces Round#498(Div.3)D. Two Strings Swaps
题目 题意是给了两个字符串a和b,然后可以对这两个字符串有三种操作来使这两个字符串相等,一是交换a[i]和b[i],二是交换a[i]和a[n-i+1],三是交换b[i]和b[n-i+1],这三个操作都是不计步数的,然后问最少还需要多少步可以让a串等于b串。 分析:我们可以想到我们只要关心a[i],a ...
分类:其他好文   时间:2018-07-31 01:37:14    阅读次数:178
CodeForces - 1006D
CodeForces 1006D You are given two strings a and b consisting of lowercase English letters, both of length n. The characters of both strings have indi ...
分类:其他好文   时间:2018-07-30 11:23:19    阅读次数:159
D. Two Strings Swaps
D. Two Strings Swaps time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given two s ...
分类:其他好文   时间:2018-07-29 00:55:03    阅读次数:171
共3304条   上一页 1 ... 64 65 66 67 68 ... 331 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!