Problem 1625 · Medium

Lexicographically Smallest String After Applying Operations

Explore every string reachable by adding to the odd positions and rotating, and keep the smallest one.

Open the interactive visualisation