摘要: KMP算法 字符串算法 给定两个字符串s1和s2,求s2在s1中所有的出现位置 暴力(O(n*m)): #include<bits/stdc++.h>using namespace std;string s1,s2;int main(){ scanf("%s%s",s1,s2); int n1=st 阅读全文
posted @ 2021-01-02 18:53 wsy_jim 阅读(244) 评论(0) 推荐(0) 编辑