Why backtracking is giving wrong results in case of 1st question and correct results for 2nd. Leetcode #322 #78 respectively
You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.
I know the correct solution but want to know the issue with backtracking. Leetcode #322
You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.