One test case is not working . Please tell me the error https://ide.codingblocks.com/s/576766

One test case is not working . Please tell me the error


Kindly refer to this code. What you were doing wrong was checking both right and down together. But in question it is mentioned rightmost path. so first we check if there is any possible path from right. if not then check for down path.

Hi, if your doubt was resolved , please mark it resolved
else if u still have any doubt regarding this question, u can post it here : )

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.