摘要: leetcode分类刷题:字符串匹配KMP算法https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ 并查集https://leetcode.cn/problems/mo 阅读全文
posted @ 2024-08-24 14:45 CodeRabbit_joion 阅读(21) 评论(0) 推荐(0)
摘要: string倒排 reverse #include <iostream> #include <string> #include <algorithm> int main() { std::string str = "Hello, World!"; std::reverse(str.begin(), 阅读全文
posted @ 2024-08-24 14:13 CodeRabbit_joion 阅读(38) 评论(0) 推荐(0)