Question about a problem using Suffix Array

Revision en1, by 156302, 2018-10-13 18:31:36

Hi, I'm having trouble understanding the solution of the following problem http://codeforces.com/contest/802/problem/I using Suffix Array, that is, the first solution in Editorial. Can someone more familiar with Suffix Array explain the solution to me?

Tags suffix array, string suffix structures, lcp array

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 156302 2018-10-13 18:31:36 301 Initial revision (published)