n points on a 2D plane, find the maximum number of points that lie on the same straight line(python)

# Definition for a point. # 尋找最大共線的點的數量 class Point: def __init__(self,a=0.0,b=0.0): self.x = float(a) self.y = float(b) class Solution: # 求取兩點間的斜率 def compute_rate(self,po
相關文章
相關標籤/搜索