Question DSA-GRDY-0066
HardWhy is greedy (largest coin first) optimal for Indian currency denominations but not for {1, 3, 4}?
- A.
Greedy is never optimal
- B.
The Indian system is 'canonical'; for {1, 3, 4}, 6 = 3 + 3 beats 4 + 1 + 1
- C.
Sign up free to see the answer and a step-by-step explanation.