Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Coin Change

Greedy or DP?

Check Your Understanding

For coins (1, 5, 6), what is the minimum coins needed for amount 10?

  1. A.2 coins (greedy: 6 + ? fails)
  2. B.3 coins (6 + 1 + 1 + 1 + 1)
  3. C.2 coins (5 + 5)
  4. D.5 coins
Start the roadmap to answer the quizzes and solve the challenges