SirodgevAlexander_'s blog

By SirodgevAlexander_, history, 9 months ago, In Russian

Hello!

I have TLE on 23 test with O(n) (I think so) Z-function. I want to reverse origin string and just use Z-func. Where is the problem?

code below https://gist.github.com/BigTape/2506b276900a6fea04d051bc4062c1f6

[problem:https://codeforces.me/edu/course/2/lesson/3/4/practice/contest/272262/problem/D]