Is the test engine glitch?


  • -1
    S

    I get the following response,
    Input:
    [[1]]
    Output:
    [[4,0],[3,0],[3,1],[2,2],[0,4],[1,4],[1,3],[0,0]]
    Expected:
    [[0,0]]

    whereas my code works fine as I checked on my laptop. Also, custom example result for [[1]] is [[0,0]] on the page.


  • 0
    S

    I am uncomfortable with a down vote, which I do not think is warranted. If you want to downvote, at least show courtesy to explain the reasoning.


  • 0
    N

    For [[1]], there is only one cell, since there are no other cells to obstruct the flow, water can flow to both the Pacific and Atlantic oceans from that cell. It is indexed as (0, 0) in the input matrix, so the result is [0, 0].


Log in to reply
 

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