Problems > The Repeating Banner > Editorial

The Repeating Banner — Solution & Editorial

Back to the Problem

Index (K−1) mod |W| into the word.

Complexity: O(1)