Help in understanding Goodbye 2019 problem F editorial (Awesome substrings)

Revision en1, by bully....maguire, 2019-12-31 17:29:46

I did not got the part of editorial where solution is optimized from O(n^2) to O(n^(1/2)) . I want to understand that part only .

Please do not downvote this post :If some one helps me then this post might help some one else.

Thannks

Tags #help, good bye 2019

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English bully....maguire 2019-12-31 17:32:30 275
en2 English bully....maguire 2019-12-31 17:30:22 57
en1 English bully....maguire 2019-12-31 17:29:46 317 Initial revision (published)