Skip to main content
Coin Change | AlgoCracked
AlgoCracked
ProblemsCoin Change
Medium43.0% acceptance
Blind75Dynamic ProgrammingArrayBreadth First Search

Coin Change

Given an array of coins (denominations, unlimited supply of each) and an integer amount , return the fewest coins needed to make up amount . If it cannot be made, return -1 . Input format Input is [coins, amount] , e.g. [[1,2,5],11] .

Loading workspace…