Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For ...
分类:
其他好文 时间:
2018-10-19 18:22:37
阅读次数:
156
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 occurrenc ...
分类:
其他好文 时间:
2018-10-18 16:51:37
阅读次数:
171
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-10-18 10:58:09
阅读次数:
128
关于字符串前缀和后缀的题目 第一点就是从B 串中删除一段连续的子串,结果就是把B串分为三段,如下所示: | 左边部分 || 删除部分 || 右边部分 | 第二点就是pre数组和suf数组,这里是前缀数组和后缀数组,以实例来解释数组的含义:以pre数组为例 设A=abacaba,B=abcdcba,串 ...
分类:
其他好文 时间:
2018-10-18 10:48:38
阅读次数:
170
Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", ...
分类:
其他好文 时间:
2018-10-18 01:14:09
阅读次数:
145
题目描述 PDF 输入输出格式 输入格式: 输出格式: 输入输出样例 输入样例#1: 复制 abcd aaaa ababab . 输出样例#1: 复制 1 4 3 题目描述 PDF 输入输出格式 输入输出样例 输入样例#1: 复制 abcd aaaa ababab . 输出样例#1: 复制 1 4 ...
分类:
其他好文 时间:
2018-10-17 22:21:42
阅读次数:
252
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: Ex ...
分类:
其他好文 时间:
2018-10-16 20:21:31
阅读次数:
189
题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Exam ...
分类:
其他好文 时间:
2018-10-14 14:14:27
阅读次数:
133
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2018-10-14 13:52:33
阅读次数:
122
一、对比 1、utf8_general_ci 不区分大小写,utf8_general_cs 区分大小写 2、utf8_bin: compare strings by the binary value of each character in the string 将字符串每个字符串用二进制数据编译存 ...
分类:
数据库 时间:
2018-10-12 21:11:20
阅读次数:
188