Skip to content

Instantly share code, notes, and snippets.

View dete's full-sized avatar

Dieter Shirley dete

View GitHub Profile
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.)