![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
文章平均质量分 76
睡不饱的老笨蛋了
这个作者很懒,什么都没留下…
展开
-
Lex String
选小的与选够同时判原创 2022-06-13 23:30:02 · 478 阅读 · 1 评论 -
Mystic Permutation
排列问题:不与之前位置相同,并且还要顺序小,就以小的贪心,记得不是全部都要小的,还有最后一个位置,他身后一无所有,没有人要他,需要我们特判给他换位置,帮助他。原创 2022-06-13 22:42:18 · 367 阅读 · 0 评论 -
A Perfectly Balanced String?
选数(物品)之差的,考虑周期的变化原创 2022-05-02 22:22:29 · 446 阅读 · 0 评论 -
Daimayuan Online Judge 循环子串
循环相连字符串用同一个字符串连接在后面。string的用法。遇字符串中任意子串用len=2循环,进行模拟子串。原创 2022-03-26 17:10:17 · 750 阅读 · 1 评论 -
Daimayuan Online Judge 子串分值和
两个连加为二维图,我们可以考虑从列入手,不从行入手。连加有后缀和。原创 2022-03-20 17:22:35 · 657 阅读 · 0 评论 -
深渊水妖
分开想问题,分成子问题一个一个解决。最大上升子串。原创 2022-03-06 21:11:00 · 190 阅读 · 0 评论 -
切糕
合法括号数量。选与不选的总组合数。原创 2022-03-05 21:19:02 · 150 阅读 · 0 评论 -
Daimayuan Online Judge 简单分数统计
map的用法:二维map的定义,map的加入原创 2022-03-01 22:28:54 · 534 阅读 · 0 评论 -
2022牛客寒假算法基础集训营6
线性求逆元。贡献值:值的大小有关,组合问题(往往与次方有关),计数问题。换种方式进行字符串暴力。原创 2022-02-20 16:28:57 · 941 阅读 · 0 评论 -
R
子串的判断:双指针。右指针可以不在最后面。原创 2022-02-10 16:23:17 · 446 阅读 · 0 评论 -
Reverse and Concatenate
反转字符串后,字符串的种类。判断整体回文。原创 2022-02-09 00:17:13 · 251 阅读 · 0 评论 -
Peculiar Movie Preferences
回文字符串:以字符串整体为操作对象,遍历对比每个字符串即可,对比用“哈希”,用长的找短的。reverse特点。字符串的比较排序。原创 2022-01-23 18:30:17 · 974 阅读 · 0 评论 -
Cats on the Upgrade (easy version)
前缀和记录集合(组合)数,同级别数求法,字符串从1开始,未知长度字符串用string,已知长度直接用char字符数组原创 2022-01-21 17:43:03 · 340 阅读 · 0 评论 -
Dominant Character
Ashish has a stringsof lengthncontaining only characters 'a', 'b' and 'c'.He wants to find the length of the smallest substring, which satisfies the following conditions:Length of the substring isat least2 'a' occurs strictly more times in this ...原创 2021-11-14 17:51:26 · 522 阅读 · 0 评论 -
Reverse String
You have a stringsand a chip, which you can place onto any character of this string.After placing the chip, you move it to the right several (maybe zero) times, i.e. you perform the following operation several times: if the current position of the chi...原创 2021-11-13 13:45:15 · 387 阅读 · 0 评论