Skip to content
advanced

Challenge: make the change with fewest coins

Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.

Challenge: Make the Change With Fewest Coins

export function fewestCoins(coins: number[], amount: number): number {
  // Your implementation here
}
challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code