摘要:
题目:Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.分析:固定一个点,遍历其余点,期间用一个HashMap记录两点斜率和斜率次数,求出局部最大值;然... 阅读全文
posted @ 2015-10-21 10:45
lasclocker
阅读(269)
评论(0)
推荐(0)
浙公网安备 33010602011771号