Search⌘ K
AI Features

Solution: Convex Polygon

Solution: Convex Polygon gives an array of unique points connected in order to form a simple polygon. Return true if every interior angle is less than 180 degrees. Otherwise, return false.

Statement

You are given an array of points on the XY plane, where each point is represented as points[i] = [xi, yi][x_i, \space y_i] ...