Wrong test case?


  • 0
    [[0,0,1,0,0],[0,0,0,0,0],[0,0,0,1,0],[1,1,0,1,1],[0,0,0,0,0]]
    [0,4]
    [3,2]
    

    maze =>
    0,0,1,0,S
    -, - ,- ,-, |
    |, -, -|,1,0
    1,1,E,1,1
    0,0,0,0,0

    that's 9 steps but OJ expected -1.

    EDIT:
    My bad. That's not a hole. Just solved The Maze III.


  • 0
    J

    Haha, I was also confused by this test case because of Maze III.
    Then suddenly I notice this is not a hole, and the ball have to stop at the destination.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.