Fork me on GitHub
摘要: 题目表述 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 分析 暴力枚举法。两点决定一条直线, n 个点两两组合,可以得到 1/2n(n + 1) 阅读全文
posted @ 2017-05-14 15:53 ranjiewen 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, , , /. Each operand may be an integer or anothe 阅读全文
posted @ 2017-05-14 00:43 ranjiewen 阅读(303) 评论(0) 推荐(0) 编辑