Available question text
Count the number of ordered pairs (A,B) of distinct points where A is strictly to the left and above B (A.x < B.x and A.y > B.y) and the axis-aligned rectangle spanned by A and B (including its border) contains no other points. With n ≤ 50 and integer coordinates, this reduces to checking pairwise dominance and emptiness of the rectangle between them.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3025. Find the Number of Ways to Place People I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source