GATE Computer ScienceVery hardGATE CSE

In how many ways can an amount of 30 be paid using unlimited coins of denominations 1, 3, 5 and 7, where the order of coins does not matter?

  1. A. 86
  2. B. 74
  3. C. 101
  4. D. 126

Correct answer: A. 86

The unbounded-coin DP over denominations 1, 3, 5, 7 gives 86 combinations for 30.

More Algorithms questions

Exams that ask this topic