Search
⌘K
Get Premium
Leetcode 963. Minimum Area Rectangle II
Given up to 50 unique 2D points, find the minimum-area rectangle (sides may be rotated) whose four vertices are in the set. Key insight: any rectangle's diagonals share the same midpoint and length, so group point pairs by midpoint and squared distance and check pairings to compute the minimal area.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.