Problem 3403 · Medium

Find the Lexicographically Largest String From the Box I

With two or more friends, every piece is at most n minus k plus 1 letters long, so compare the windows of that length.

Open the interactive visualisation