Is the test engine glitch?

  • -1

    I get the following response,

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

  • 0

    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

    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.