Search⌘ K
AI Features

Convex Polygon

Convex Polygon gives an ordered array of unique points whose edges form a simple polygon. Return true if every interior angle is below 180 degrees, and false otherwise.

Statement

You are given an array of points on the XY plane, where each point is represented as points[i] = ...