摘要: Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思考:考虑以下几种情况:1.points中0、1、2个点;2.points含相同点如{[0,0],[0,0]},{[1,1],[1,1],[2,2],[2,2]}};3.斜率为无穷。/** * Definition for a point. * struct Point { * int x; * int y; * Point() : x(0), y(0) {} * Poi... 阅读全文
posted @ 2013-12-29 19:40 七年之后 阅读(207) 评论(0) 推荐(0) 编辑