Search⌘ K
AI Features

Solution: Maximum Area Rectangle With Point Constraints I

Solution: Maximum Area Rectangle With Point Constraints I asks for the largest axis-aligned rectangle formed by four points, containing no other points inside or along its border, or return -1.

Statement

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