Here one test case is showing tle…
I am not able to find any bug in code…
Please help
One test case is tle
there are few mistakes
- return true form base case
- if you have go to right and it return true then you also have to return true no need to go down
and after down you have to return whatever down return true or false
look at modified Code below
Modfied Code