Greedy vs optimal

Report a typo

Suppose you want to change 3030 cents using available coins: 1,10,1, 10, and 2525 cents. You want to perform the change using the minimum number of coins. What is the difference in the number of coins between the Greedy solution and the optimal solution?

Enter a number
___

Create a free account to access the full topic