题目如下: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum nu ...
分类:
其他好文 时间:
2020-02-09 18:39:10
阅读次数:
68
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b ...
分类:
其他好文 时间:
2020-02-09 00:38:57
阅读次数:
93
redis是Key Value数据库,和Memcached类似。value可以是多种类型,如Strings, Lists, Hashes, Sets 及 Ordered Sets等。 redis一个牛逼的地方在于,它的性能极高!读的速度是110000次/s,写的速度是81000次/s !高性能意味着 ...
分类:
其他好文 时间:
2020-02-08 18:00:40
阅读次数:
81
strings方法 index 判断子字符串或字符在父字符串中出现的位置(索引)Index 返回字符串 str 在字符串 s 中的索引( str 的第一个字符的索引),-1 表示字符串 s 不包含字符串 str :strings.Index(s, str string) intLastIndex 返 ...
分类:
其他好文 时间:
2020-02-05 11:51:25
阅读次数:
78
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we ...
分类:
其他好文 时间:
2020-02-04 10:24:21
阅读次数:
67
题目内容 Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example: ...
分类:
其他好文 时间:
2020-02-03 22:31:16
阅读次数:
81
0x00 序列化与反序列化 序列化: serialize()把对象转换为字节序列的过程称为对象的序列化 反序列化: unserialize()把字节序列恢复为对象的过程称为对象的反序列化 0x01 序列化 这里就是转化成7个字节序列 s:strings类型,7:7个字节。 a:数组类型 i:int型 ...
分类:
Web程序 时间:
2020-02-02 19:27:28
阅读次数:
111
Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc". On the other hand, we define that stri ...
分类:
编程语言 时间:
2020-01-30 10:06:46
阅读次数:
88
1、题目 14. Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, re ...
分类:
其他好文 时间:
2020-01-29 17:50:57
阅读次数:
65
题目 Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings o ...
分类:
其他好文 时间:
2020-01-29 01:03:21
阅读次数:
73