硬币找零问题的动态规划法 class MinCoinChange{ constructor(arr){ this.money = arr //存放可用零钱面值 this.length = arr.length //零钱数目 this.coinCount = [0] //i元所用最少硬币数 this.coinValue = [[]] //i元所用最少硬币列表 } makeChange(n){ for(let i = 1