Problem 2967 · Medium
Move every value to one palindrome; the best target is a palindrome next to the median.
Open the interactive visualisation