Problem 2952 · Medium
Track the range of reachable sums; when no coin extends it, add the coin reach plus one.
Open the interactive visualisation