Problem 2967 · Medium

Minimum Cost to Make Array Equalindromic

Move every value to one palindrome; the best target is a palindrome next to the median.

Open the interactive visualisation