码迷,mamicode.com
首页 >  
搜索关键字:strings    ( 3278个结果
ZOJ4110 Strings in the Pocket(2019浙江省赛)
给出两个字符串,询问有多少种反转方法可以使字符串1变成字符串2。 如果两个串相同,就用马拉车算法找回文串的数量~ 如果两个串不同,从前往后找第一个不同的位置l,从后往前找第二个不同的位置r,反转l和r,判断是否成功~ 如果不成功,记为0 如果成功,以l和r为起点判断是否能反转,记录次数 #inclu ...
分类:其他好文   时间:2020-02-14 16:02:35    阅读次数:79
LeetCode 205. Isomorphic Strings
"题目" ...
分类:其他好文   时间:2020-02-14 11:24:26    阅读次数:55
leetcode1143 Longest Common Subsequence
1 """ 2 Given two strings text1 and text2, return the length of their longest common subsequence. 3 A subsequence of a string is a new string generate ...
分类:其他好文   时间:2020-02-12 00:23:03    阅读次数:70
LeetCode 1347. Minimum Number of Steps to Make Two Strings Anagram
"题目" 用hash,比较两个字符串数组的每个字符的hash值 ...
分类:其他好文   时间:2020-02-09 20:36:37    阅读次数:64
【leetcode】1347. Minimum Number of Steps to Make Two Strings Anagram
题目如下: 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
To Buy or Not to Buy - Hard Version
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
redis是Key Value数据库,和Memcached类似。value可以是多种类型,如Strings, Lists, Hashes, Sets 及 Ordered Sets等。 redis一个牛逼的地方在于,它的性能极高!读的速度是110000次/s,写的速度是81000次/s !高性能意味着 ...
分类:其他好文   时间:2020-02-08 18:00:40    阅读次数:81
3.3 GO字符串处理
strings方法 index 判断子字符串或字符在父字符串中出现的位置(索引)Index 返回字符串 str 在字符串 s 中的索引( str 的第一个字符的索引),-1 表示字符串 s 不包含字符串 str :strings.Index(s, str string) intLastIndex 返 ...
分类:其他好文   时间:2020-02-05 11:51:25    阅读次数:78
[LeetCode 955] Delete Columns to Make Sorted II
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
leetcode 43. Multiply Strings
题目内容 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
3278条   上一页 1 ... 16 17 18 19 20 ... 328 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!