Solution: Counting Money
This review provides a detailed analysis of the different ways to solve the counting money challenge.
We'll cover the following...
We'll cover the following...
Solution: greedy approach
Caution!!This is not the most optimized solution. It is only to give you an idea of how the greedy algorithm works.
Explanation
The simple greedy idea is to start from the largest possible coin available and keep adding coins, ...