Problem 3353 · Medium

Minimum Total Operations

Each neighbour pair that differs needs exactly one prefix shift; watch the bars level out one gap at a time.

Open the interactive visualisation