Anybody can help me? I've use the KMP and I'm sure that my program run on the largest testcases. And it works.. but I have a TLE on my code. #include<iostream> #include<stack>
using namespace std;
char text[100001], pat[100001]; int f[100001]; stack<char> tempS;