Problem 2996 · Easy

Smallest Missing Integer Greater Than Sequential Prefix Sum

Sum the longest prefix whose values rise by one each step, then find the smallest missing integer at or above that sum.

Open the interactive visualisation