Search⌘ K
AI Features

Maximum Area Rectangle With Point Constraints I

Maximum Area Rectangle With Point Constraints I asks for four points forming an axis-aligned rectangle with no other points inside or on its border, then return its largest area or negative one.

Statement

You are given an array of points, where points[i] have two values: ...