Coin Change
You are given an integer array coins representing different coin denominations and an integer amount representing a total amount of money. Write a function to compute the minimum number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)