Last Updated: December 2025
Given an amount of money and a list of coin denominations, what is the minimum number of coins you must select to make up that amount, assuming an unlimited number of coins from each denomination?
amount is an integer representing the target amount of money.coins is a list of integers representing the available coin denominations.coins can have any length.coins can be positive integers.coins can be in any order.amount can be any non-negative integer.amount can be equal to zero.amount can be greater than zero.amount can be larger than the maximum value that can be represented by an integer.