We can reach 36 in many ways. And, even if we use bfs
we will explore all the path but at the end our bfs is showing only the shortest path. How??
BFS SSP Snakes and ladder problem
i would suggest you to read this article
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.