I am getting tle for one case and WA for one case.
What am I missing?
I am getting tle for one case and WA for one case.
What am I missing?
Why did you add if(right)? If it gives the path exisit or not why we are not adding similar thing after calculating bool down befor backtacking?
You only have to print 1 path which is rightmost
so if we get a path from right we don’t have to go down to find path and hence returning
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.