New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Waymo
Coding Question
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
Accepted
1.1k
/2k
Acceptance Rate
55.2%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
points =
Output
Expected