会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
蔡军帅
当你的才华撑不起你的野心时,就该静下心来好好读博客了。
博客园
首页
新随笔
联系
订阅
管理
2020年11月22日
国防科大KMP算法求next数组(下标从0开始,相当于优化后的nextval)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ char s[105]; while(cin>>s) { int next[105]; memset(next,0,sizeof(next)); int i=0,j=-1; next[0
阅读全文
posted @ 2020-11-22 16:03 蔡军帅
阅读(394)
评论(0)
推荐(0)
编辑