Problem 1413 · Easy

Minimum Value to Get Positive Step by Step Sum

Find the smallest positive starting value so that the running sum never drops below one. The visual plots the prefix sums and lifts the start to clear the lowest point.

Open the interactive visualisation