【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
相關文章
相關標籤/搜索