Maximum Area Rectangle from Points

Given n distinct integer-coordinate points in a 2D plane, choose any four points that form a rectangle. Rectangle edges are not required to be parallel to the axes.

Return the maximum area amon...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: