Problem 3224 · Medium

Minimum Array Changes to Make Differences Equal

Pair the outer and inner positions, then try every common difference and count the cheapest change per pair.

Open the interactive visualisation