0 should not be considered as positive number in some testcases...


  • 0
    C

    I use negative to make the visited mark, so I failed in testcase [[9,9,9,9,9,9,8,9,9,9,9],[9,0,0,0,0,0,1,0,0,0,9],[9,0,0,0,0,0,0,0,0,0,9],[9,0,0,0,0,0,0,0,0,0,9],[9,9,9,9,9,9,9,9,9,9,9]].

    But seriously, 0 is neither a positive nor a negative, it should not be included in testcase.


Log in to reply
 

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