Dynamic Programming Solution for a Variant of Coin Exchange
问题 I am practicing Dynamic Programming. I am focusing on the following variant of the coin exchange problem: Let S = [1, 2, 6, 12, 24, 48, 60] be a constant set of integer coin denominations. Let n be a positive integer amount of money attainable via coins in S . Consider two persons A and B . In how many different ways can I split n among persons A and B so that each person gets the same amount of coins (disregarding the actual amount of money each gets)? Example n = 6 can be split into 4