• + 1 comment

    guys, I am stuck, I've searched the internet, read a bit about suffix arrays, Lyndon words and factorization and some other stuff, but I can not figure out how this all applicable here.

    I would greatly appreciate some hints.

    Many thanks