摘要:
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.对每个点,考察其他点与它组成的直线斜率,使用HashMap将斜率与点个数对应起来。需要注意的一点是特殊斜率... 阅读全文
posted @ 2014-09-10 11:35
metalx
阅读(370)
评论(0)
推荐(0)
摘要:
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express... 阅读全文
posted @ 2014-09-10 04:45
metalx
阅读(181)
评论(0)
推荐(0)
浙公网安备 33010602011771号