I write a nlogn solution for this problem but it is giving tle how to solve this using KMP or other string matching algorithm. Help will be really appreciated . Thanks :)
Help in cses string problem Finding Borders
I write a nlogn solution for this problem but it is giving tle how to solve this using KMP or other string matching algorithm. Help will be really appreciated . Thanks :)