This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class MakeChange | |
{ | |
// Returns the count of all possible ways to make exact change for the | |
// given total using the coin denominations in the coins[] array. | |
// | |
// Each coin can be used more than once, but the order of the coins is | |
// irrelevant (in other words, "1, 1, 2" and "1, 2, 1" count as a | |
// single possibility.) |