Search⌘ K
AI Features

Maximum Area Rectangle With Point Constraints I

Explore how to determine the largest rectangle with borders parallel to axes from a set of points, ensuring no other points lie inside or along its edges. Understand the problem constraints and develop an approach to return the maximum area or -1 if none exists.

Statement

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