Need help in practice question of EDU suffix array

Revision en1, by ash_vs_ash, 2020-07-02 20:07:43

I am continuously getting TLE on "substring search" (question 1 of step 3 ). I tried declaring global variables, tried passing reference to vectors, reduced function calls but nothing worked. According to me, my code is O(nlogn). Can someone please help me in finding why I am getting TLE. Here is the code: https://codeforces.com/edu/course/2/lesson/2/3/practice/contest/269118/submission/85793528

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ash_vs_ash 2020-07-02 20:07:43 449 Initial revision (published)