Problem 1449 · Hard

Form Largest Integer With Digits That Add up to Target

Find the most digits that exactly reach each cost, then build the largest number by choosing big digits while keeping that length.

Open the interactive visualisation