Problem 2574 · Easy

Left and Right Sum Differences

Keep a running left sum and get the right sum by subtracting it from the total, then compare the two at each index.

Open the interactive visualisation