Problem 2952 · Medium

Minimum Number of Coins to be Added

Track the range of reachable sums; when no coin extends it, add the coin reach plus one.

Open the interactive visualisation