Leetcode: Max Points on a Line

Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. html 分析:spa 任意一条直线均可以表述为code y = ax + bhtm 假设,有两个点(x1,y1), (x2,y2),若是他们都在这条直线上则有blog y1 = kx1 +bleet
相关文章
相关标签/搜索