DIY: Coin Change
Explore how to implement the coin change algorithm in Java to find the fewest coins needed for a given total. Learn to handle edge cases and infinite coin supplies while preparing for coding interviews.
We'll cover the following...
We'll cover the following...
Problem statement
You are given an integer total and a list of integers called coins. The variable coins holds a list of m coin denominations and total is the total amount of money.
You have to find the minimum number of coins that can make up the ...