for leetcode 322 coin change, the code is below:
class Solution: def change(self, amount: int, coins: List[int]) -> int: dp = [0] * (amount + 1