Problem 1664 · Medium

Ways to Make a Fair Array

Count indices whose removal leaves the even-position and odd-position sums equal. The visual keeps running sums for each parity and checks each removal point.

Open the interactive visualisation