My all test cases are not satisfying plz see

Your code is corre, try to print without using endl, or if this doesn’t work then update your if condition to > instead of >=
Try submitting this, if this doesn’t help do let me know

@devwrath1999 your code sets dp[0][0] false it might cause some issue you also need to mark it as true. i think it will work fine…

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.