You are given an integer array coins representing available coin denominations and an integer k.
An amount is valid if it can be formed using a single denomination from coins (meaning the amount is a positive integer multiple of at least one element in coins).
Return the
Constraints:
coins.length
coins[i]
k
coins contains pairwise distinct integers.
You are given an integer array coins representing available coin denominations and an integer k.
An amount is valid if it can be formed using a single denomination from coins (meaning the amount is a positive integer multiple of at least one element in coins).
Return the
Constraints:
coins.length
coins[i]
k
coins contains pairwise distinct integers.