Coin Change at TikTok

Medium47.9% acceptance

This problem has 75.0% frequency at TikTok.

Problem Description

You are given an integer array `coins` representing coins of different denominations and an integer `amount` representing a total amount of money. Return _the fewest number of coins that you need to make up that amount_. If that amount of money cannot be made up by any combination of the coins, ret...

Read full problem and hints

Topics

Also asked at 41 companies


More TikTok Questions

View all TikTok questions