Given a coins representing the values of available coins, and an integer target, determine the minimum number of coins of any value that must be added to the array such that every integer from target inclusive can be formed as the sum of a subset of elements in coins.
Constraints:
target
coins.length
coins[i] target
Given a coins representing the values of available coins, and an integer target, determine the minimum number of coins of any value that must be added to the array such that every integer from target inclusive can be formed as the sum of a subset of elements in coins.
Constraints:
target
coins.length
coins[i] target