My code is showing wrong output could you please help me in figuring out where i am going wrong in finding the shortest path
Help needed in debugging. Snakes And Ladders Problem
@utkarshvashisth94 hey your logic is not upto the mark ,if current place has snake or ladder then you have to push the head of ladder and tail of snake in queue as its neigbour,please correct your code,you will get it,feel free to ask any doubt.
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.