322. Coin change

注意点: 边界条件的确认 初始化用Inf(除了0位置) 返回值是否为inf的判断 递推公式为min(res[money],1+res[money-coin]) 函数内部先判断money是否大于等于coin def coinChange(self, coins, amount): """ :type coins: List[int] :type amo
相关文章
相关标签/搜索