摘要: Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.Solution:/** * Definition for a point. * struct Point { * int x; * int y; * Point() : x(0), y(0) {} * Point(int a, int b) : x(a), y(b) {} * }; */class Solution {public: int maxPoints(v... 阅读全文
posted @ 2014-02-22 14:56 andyqee 阅读(124) 评论(0) 推荐(0) 编辑