Is this a wrong case in Max Points On A Line?


  • 0
    W

    I write the code to the problem Max Points On A Line. I find there is such a case:

    [(0,0),(0,1),(0,0)].

    The expected answer is 3, while my output is 2, because there are two (0,0) points in the case.

    Is this a wrong case in Max Points On A Line?


  • -2
    Y

    The 1st point (0,0) and the 3rd point (0,0) are the same, but count 2.


Log in to reply
 

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