原题链接在这里:https://leetcode.com/problems/repeated-string-match/description/ 题目: Given two strings A and B, find the minimum number of times A has to be r ...
分类:
其他好文 时间:
2017-10-18 10:13:40
阅读次数:
189
原题链接在这里:https://leetcode.com/problems/split-concatenated-strings/description/ 题目: Given a list of strings, you could concatenate these strings togethe ...
分类:
其他好文 时间:
2017-10-18 10:07:28
阅读次数:
244
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. Note: 题目含义:计算两个非负整数的乘法,并用string返回 思路: 方法二: ...
分类:
其他好文 时间:
2017-10-17 18:45:55
阅读次数:
159
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2017-10-17 12:18:49
阅读次数:
104
You are given n strings s1,?s2,?...,?sn consisting of characters 0 and 1. m operations are performed, on each of them you concatenate two existing str ...
分类:
其他好文 时间:
2017-10-15 17:46:05
阅读次数:
276
CodeForces 868D 题意:给出 n 个 01字符串,有 m 个询问 a, b, 要求合并字符串 a 和字符串 b, 然后求出合并后字符串最大的 k 。 k 要满足:长度为 k 的字符串都是合并后字符串的子串。 tags:简直假题。。。 直接存下字符串肯定不行,但有个点: 字符串 a 与 ...
分类:
其他好文 时间:
2017-10-14 21:14:17
阅读次数:
115
Power Strings POJ - 2406 kmp可以过的 学了sa就用sa搞一下,,一直TLE... 好像要用另外一种方法实现,还没学=_= 先放上超时的代码吧 1 //#include <bits/stdc++.h> 2 #include <iostream> 3 #include <cs ...
分类:
其他好文 时间:
2017-10-14 18:33:33
阅读次数:
134
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 字符串表示二进制数,求相加后的结果 C++(6ms): ...
分类:
其他好文 时间:
2017-10-14 18:26:34
阅读次数:
136
解决方法:在colors.xml 或者 strings.xml中加两个item 解决方法来自:Stack Overflow ...
分类:
其他好文 时间:
2017-10-13 21:26:52
阅读次数:
175
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2017-10-12 12:11:14
阅读次数:
186