Incorrect judge result with input with duplicate lands like "3 3 [[0,0],[0,1],[2,2],[2,2]]"

  • 0

    result should be [1,1,2,2] because a duplicate land is added. However the judge gives [1,1,2,3]. I think it is wrong. Another example: "3,3 [[0,0],[0,0],[0,0]]" gives [1,2,3] instead of [1,1,1]

Log in to reply

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