Skip to content
RED SAGSkills
medium10 pts · first answer countsdynamic-programmingcoin-changecounting

Loop order in coin counting

In the coin-counting DP, ways[a] += ways[a - c]. What changes when you put the amount loop outside and the coin loop inside?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions