![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
会飞的星星0312⭐️
这个作者很懒,什么都没留下…
展开
-
字符串匹配算法之Sunday search
字符串匹配算法之Sunday search C++编写 #include<cstring> #include<vector> #include<iostream> #include<queue> using namespace std; class Node { public: Node* fail; //失败指针 Node* child[26]; //26个小写字母,26个子节点 vector<int&g原创 2021-10-25 09:01:20 · 185 阅读 · 0 评论 -
字符串匹配算法之AC search
字符串匹配算法之AC search C++编写 #include<string> #include<iostream> #include<vector> using namespace std; int main() { string str = "you"; string txt = "youhello yorld you are youomymal jhyouoeyou"; cout<<str<<endl<&l原创 2021-10-25 09:00:30 · 199 阅读 · 0 评论