missed test case?


  • 0
    H

    for this case:
    {
    { 2, 2, 2, 2, 3 },
    { 2, 1, 1, 1, 2 },
    { 2, 1, 3, 1, 2 },
    { 2, 1, 1, 1, 2 },
    { 3, 2, 2, 2, 2}
    }
    some of the submissions can't return the node 3(row=2,col=2).


  • 0
    A

    @hyhaoyong in this case the water from [2,2] could just flow to the nodes with height 1 , then no further more. In another word the water from [2,2] could not reach neither Pacific nor Atlantic. So it's correct for not giving the node [2,2]


Log in to reply
 

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