3116. Kth Smallest Amount With Single Denomination Combination
You are given an integer array
coins
representing coins of different denominations and an integerk
.You have an infinite number of coins of each denomination. However, you are not allowed to combine coins of different denominations.
Return the
kth
smallest amount that can be made using these coins.
c++
1 |
|