what is the priority order between taking down,right,left and up , steps by rat
Rat chases its cheese
@soorya19k problem statement says
There exits a unique path in the grid so it won’t matter which path you take first.
since you are going in all direction you may go to the cell which is already in the path so don’t go in the cell if it is already visited.
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.