Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Identify the maximum area of an axis-aligned rectangle formed by exactly four distinct lattice points.
Rectangle sides must remain parallel to the x and y axes.
Return 0 if no valid combination of four points forms such a rectangle.
What This Tests
Hash set operations for constant-time existence checks
Geometric properties of axis-aligned shapes
Optimizing combinatorial search spaces
Coordinate arithmetic and absolute difference calculations
Common Patterns
Hashing
Sorting
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Report
Report seen similar question in interview
Accepted
871
/1.6k
Acceptance Rate
53.5%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Python3
Auto
Debug
Run
Submit
Test Cases
Input
points =
Output
Expected