Rosetta Problems

Lyndon Factorization

https://judge.yosupo.jp/problem/lyndon_factorization