Search⌘ K
AI Features

Solution: Maximum Area Rectangle With Point Constraints I

Explore how to compute the largest rectangle on a coordinate plane by selecting four corner points with borders aligned to axes. Understand how to validate rectangles and efficiently check point constraints within the shape to maximize area.

Statement

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