Snakes and Ladders: The Quickest Way Up

  • + 2 comments

    I admit that test cases have multiple snacks and ladders. But every solution contains only one ladder included. I used BFS and just substracted -1 . correct solution needs dijkstra to be implemented because there can be cases where more than one ladder is used in optimal solution.Thats why I am saying test cases are really very week .