给一个Point[] points
[(0,0),(0,1)]
在xy坐标系中,就是,一条直线上的两个点,
两点一线,所以点至少有3个,才能有曲线
给坐标点,问最多能有几个点在一条线上
public int maxPoints(Point[] points) {
if (points == null) return 0;
if (points.length < 3) return points.length;
int i, j, res = 0;
double k;
for (i = 0; i < points.length