Problem 3868 · Medium

Minimum Cost to Equalize Arrays Using Swaps

Each value must total an even count, and each paid cross swap moves one surplus value.

Open the interactive visualisation