Filter interviews by
I applied via Internshala and was interviewed in Mar 2024.
I applied via Internshala and was interviewed in Feb 2023.
You are given an integer list 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, return {}.
You may assume that you have an infinite number of each kind of coin.
Example 1: Input: coins = [1, 5, 6, 9, 15], amount = 31
Output: {15:2, 1:1}
Example 2: Input: coins = [1, 5, 6, 9, 15], amount = 100
Output: {15:6, 9:1, 1:1}
I applied via Internshala and was interviewed in Feb 2023.
1. Question on dynamic programming
2. Open book question on NLP/OpenCV
Brave AI Lab interview questions for popular designations
Top trending discussions
based on 3 reviews
Rating in categories
TCS
Accenture
Wipro
Cognizant