Breadth First Search: Shortest Reach

  • + 1 comment

    My python code is giving a runtime error on test case #5.

    It passed all the test cases except Test Case #5. Test Case 2 took maximum time of 0.12s. Test case #5 gave runtime error in 0.62 s. Any suggestions on what is the problem? My code.