Problem 2422 · Medium

Merge Operations to Turn Array Into a Palindrome

Two pointers grow equal-sum end groups; the smaller group merges with its neighbour until the sums match.

Open the interactive visualisation