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
Money change dp problm
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