Coin-change counting

ID: coin-change-counting

Count multisets of allowed positive coin values whose sum is a target. Initialize and for . For each coin , update in increasing order of . The outer loop over coins counts each multiset once while allowing repeated use of a coin.

New to topics? Read the docs here!