time complexity of lps

Revision en1, by striker_46, 2024-05-02 23:37:42

I am learning the alogorithm of prefix_function i get the algorithm but unable to understand the time complexity of the algorithm why the time complexity is o(n) can anyone explain the time complexity of algo.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English striker_46 2024-05-02 23:37:42 234 Initial revision (published)