Coin Change

Given coin denominations and an amount, find the minimum number of coins needed to make that amount.

Time: O(amount * coins) | Space: O(amount)

Controls

SlowFast
🪙

Configure parameters and press Start to visualize the Coin Change algorithm.