【Leetcode】322. Coin Change

class Solution1(object): def coinChange(self, coins, amount): """ :type coins: List[int] :type amount: int :rtype: int """ dp = [float("inf")] * (amount + 1) dp[0] = 0
相关文章
相关标签/搜索