Money Change DP

Only Test Case 2 is not passing.
Plz Help
code link https://ide.codingblocks.com/s/236623

@Bhawna your code is correct i think there is some issue with the test case. it will be updated shortly.

ok I submitted same code in same question of Hackerrank and it passed all test cases I also think there is some issue.

yeah submit it later on hackerblocks.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.