Coin Change at ServiceNow
Medium47.9% acceptance
This problem has 62.5% frequency at ServiceNow.
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 hintsTopics
Also asked at 41 companies
More ServiceNow Questions
Trapping Rain WaterHardNumber of Distinct Roll SequencesHardFind Minimum Diameter After Merging Two TreesHardContainer With Most WaterMediumGenerate ParenthesesMedium
View all ServiceNow questions