Available question text
For each query point, count how many origin-anchored rectangles (0,0)-(li,hi) satisfy li >= x and hi >= y. Key observation: heights are bounded (<=100), so bucket rectangles by height and use sorted lengths / prefix counts to quickly sum rectangles with li >= x across heights >= y.
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 2250. Count Number of Rectangles Containing Each Point
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source