Debug KMP solution

Revision en1, by proofbycontradiction, 2017-10-21 22:51:53

Hi codeforces,

I was attempting to solve the KMP problem below, but I'm failing on testcase 3.When I run the testcase locally, I am getting the correct answer on my machine. Could somebody help spot the bug that is probably causing undefined behaviour?

Problem: Solution:

Tags kmp, bug in code


  Rev. Lang. By When Δ Comment
en1 English proofbycontradiction 2017-10-21 22:51:53 399 Initial revision (published)