Problem 1785 · Medium

Minimum Elements to Add to Form a Given Sum

Find the fewest bounded-magnitude values to append so the sum equals goal.

Open the interactive visualisation