Solution: Convex Polygon
Explore how to determine if a polygon is convex by using vector cross product calculations between consecutive points. Understand how consistent turn directions indicate convexity and learn to implement the O(n) time and O(1) space algorithm.
We'll cover the following...
We'll cover the following...
Statement
You are given an array of points on the XY plane, where each point is represented as points[i] =