Question DSA-GRDY-0051
MediumWith coins {1, 5, 6, 9}, the greedy method makes 11 as 9 + 1 + 1. What is the optimal number of coins?
- A.
4
- B.
2 (5 + 6)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
With coins {1, 5, 6, 9}, the greedy method makes 11 as 9 + 1 + 1. What is the optimal number of coins?
4
2 (5 + 6)
Sign up free to see the answer and a step-by-step explanation.
1
3