Suppose you want to change cents using available coins: and 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?
Greedy algorithms
Greedy vs optimal
Report a typo
Enter a number
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.