Content

  • Infinite supply of coin.
  • There is always two choice and after taking that choice the sum will change.
  • Will the above table change if there are multiple coins.
  • memoization should be easier here.
  • One condition if coin is smaller than sum then it can be skipped.
  • Three sum can be created,
    • 3-2 = 1
    • To create 1 there is only 1 way.
  • Manually try to figure out in how many ways the sum can be calculated.
  • Problem variation, minimum number of coins required for the change, in the tree add a variable.