You are given an integer array numWays, where numWays[i - 1] represents the number of distinct combinations to form an amount of numWays.length) using an infinite supply of coins with distinct positive integer denominations.
Return an array containing the coin denominations in strictly increasing order that produces the given numWays array. If no such set of denominations exists, return an empty array.
Constraints:
numWays.length
numWays[i]
You are given an integer array numWays, where numWays[i - 1] represents the number of distinct combinations to form an amount of numWays.length) using an infinite supply of coins with distinct positive integer denominations.
Return an array containing the coin denominations in strictly increasing order that produces the given numWays array. If no such set of denominations exists, return an empty array.
Constraints:
numWays.length
numWays[i]