给出一个文本串及n个模式串,检查对应的模式串是否在文本串中出现
使用rabin karp算法超时
代码见:
https://github.com/wuli2496/OJ/blob/master/spoj/Substring%20Problem/Substring%20Problem.cpp
但是在spoj上评论上说有人用rabin karp算法通过。
给出一个文本串及n个模式串,检查对应的模式串是否在文本串中出现
使用rabin karp算法超时
代码见:
https://github.com/wuli2496/OJ/blob/master/spoj/Substring%20Problem/Substring%20Problem.cpp
但是在spoj上评论上说有人用rabin karp算法通过。