Python wrong case !

  • 0

    Input: [(0,0),(0,0)]
    Output: 1
    Expected: 2

    I wrote in python and got this ERROR.
    Obviously, (0,0) and (0,0) is the same point,
    so i think my output is right.
    Hoping admins to verify.
    the problem is 'Max Points on a Line'

  • 0

    No, they are at the same location, but they are separate objects, and so are counted once each. Without having that as a case, the problem becomes much simpler to solve, and not so much of a challenge.

Log in to reply

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