Problem 1818 · Medium

Minimum Absolute Sum Difference

Minimize absolute sum difference by replacing at most one first-array entry with another value from that array.

Open the interactive visualisation