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
相关文章
相关标签/搜索