Problem 2808 · Medium

Minimum Seconds to Equalize a Circular Array

Find the fewest seconds needed to make every value in a circular array equal when each value can copy a neighbour each second. The visual groups equal values by position and shows colour spreading around the ring.

Open the interactive visualisation