min-sum-init-zero-is-intentional

Status: IN

In the min-start-value solution, `min_sum` is initialized to 0 (not `-inf`) so that when all prefix sums are non-negative, the result is correctly `max(1, 1 - 0) = 1` without a special case.

Source: entries/2026/06/06/minimum-value-to-get-positive-step-by-step-sum-solution.md

JSON