Computer Science EngineeringVery hard

What is the minimum number of coins needed to make 11 using denominations {1, 5, 6, 9}?

  1. A. 3
  2. B. 2
  3. C. 4
  4. D. 1

Correct answer: B. 2

Coins 5 and 6 sum to 11, so two coins suffice, while greedy picking 9 would need three.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic