Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.思路:(1)点1到点n (a)以点1为参考点,求“点1”与“点2到点n”各个斜率下点的个数; (求出直... Read More
posted @ 2014-06-07 23:28 Xylophone Views(183) Comments(0) Diggs(0)
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex... Read More
posted @ 2014-06-07 09:36 Xylophone Views(194) Comments(0) Diggs(0)