Skip to content
RED SAG Skills
easyStudy question · answer published in Data Structures and Algorithms interview questions, so no pointsdynamic-programminggreedy

When the greedy coin choice fails

Coins are 1, 3 and 4. Greedy always takes the largest coin that fits. For amount 6, how many coins does greedy use, and what is the true minimum?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions