几何
文章平均质量分 86
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 149. Max Points on a Line(直线上的点)
原题网址:https://leetcode.com/problems/max-points-on-a-line/ Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 方法一:逐点比较斜率。 /** * Definition for a原创 2016-05-26 01:12:31 · 588 阅读 · 0 评论 -
LeetCode 335. Self Crossing(贪吃蛇)
原题网址:https://leetcode.com/problems/self-crossing/ You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[原创 2016-04-30 01:55:51 · 828 阅读 · 0 评论 -
LeetCode 356. Line Reflection(线反射)
原题网址:https://leetcode.com/problems/line-reflection/ Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given set of points. Example 1: Given po原创 2016-06-16 02:43:49 · 2121 阅读 · 0 评论 -
469. Convex Polygon
原题网址:https://leetcode.com/problems/convex-polygon/ Given a list of points that form a polygon when joined sequentially, find if this polygon is convex (Convex polygon definition). Note: T原创 2016-12-05 03:36:00 · 1379 阅读 · 0 评论