Rishi Srivastava Pseudo code: int dp new intamount + 1; dp0 0; for (int i 1; i is less than or equal to amount; i++) for (int coin : coins) int change i coin; if (change is greater than or equal to 0) dpi MIN(dpi, 1 + dpchange); return (dpamount dpamount : 1; Github: Leetcode:
0
0
Related videos
Preparing
To view the site materials you should be more than or equal to 18 years old