Problem 2270 · Medium
Track a running prefix sum and compare it with the remaining suffix, which is the total minus the prefix.
Open the interactive visualisation