sir if all the directions are allowed then what will be the approach
Grid problem extended
@pps.vikhyat.17 You can use the recursion and backtracking approach to traverse all possible directions. The problem would be similar to the problem “Rat chases its Cheese” which is there in the Linked List challenges.
1 Like
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.