Question DSA-GRDY-0020
HardWhy does greedy coin change fail for coins {1, 3, 4} but work for Indian currency denominations?
- A.
Indian denominations form a 'canonical' system where taking the largest coin first is always optimal; {1, 3, 4} is not canonical
- B.
Because 4 is even
- C.
Sign up free to see the answer and a step-by-step explanation.