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.
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.