Minimum Cost Path DP

I am not getting the correct answer for this minimum cost path dp, it is always showing 0 as answer

Can someone figure it out?

hi @ayushmittal628_58414ee9c56e4875
I have made changes in ur code… its working fine now

It is still showing output as 0.
It is not working fine Sir.

updated link -->

Sir, same logic was applied by me when I made the function
Then why I was not getting answer using that function call?

hi @ayushmittal628_58414ee9c56e4875
ur corrected code (top down approach) -->

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.