标签:join 分享 nts problems alt ems 技术 org ima
Given a list of points that form a polygon when joined sequentially, find if this polygon is convex (Convex polygon definition).
Note:
Example 1:
[[0,0],[0,1],[1,1],[1,0]] Answer: True Explanation:
Example 2:
[[0,0],[0,10],[10,10],[10,0],[5,5]] Answer: False Explanation:
s
[LeetCode] Convex Polygon 凸多边形
标签:join 分享 nts problems alt ems 技术 org ima
原文地址:http://www.cnblogs.com/grandyang/p/6146986.html