Need help in practice question of EDU suffix array

Правка en1, от 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://mirror.codeforces.com/edu/course/2/lesson/2/3/practice/contest/269118/submission/85793528

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ash_vs_ash 2020-07-02 20:07:43 449 Initial revision (published)