#3116
Kth Smallest Amount With Single Denomination Combination
grandmaster · 2200 · lc hard +32 · 20% accepted · 252 likes · top 1%
Description
Given coin denominations in array coins (unlimited supply of each) and an integer k, you may only use one denomination at a time—no mixing allowed. Return the k-th smallest positive amount formable using any single denomination.
Code
1
2
3