题目描述 Given n points on a 2D plane, find the maximum number of points that lie on the same straight
import java.util.*;
public class Solution {
public int maxPoints(Point[] points) {
if(points.length
return points.length;
int flag=0;
for(int i=0;i
原创
2017-04-14 16:27:18 ·
915 阅读 ·
0 评论