Money change dp problm

I CANT UNDERSTAND MY MISTAKE
I HAVE COMMENTED MY STEPS IN MY CODE
PLEASE TELL ME MY FAULT OR COMMENT MY MISTAKES IN MY CODE

https://ide.codingblocks.com/s/44236

https://hack.codingblocks.com/contests/c/512/1026

Hey Jai, your approach for the problem is not correct as it is not giving all the combinations. Every time you will be having 2 options either you will take the denomination or not. Here I am sharing my DP solution for the problem you can refer this.

1 Like