DSA Advanced Problems

Count Number of Rectangles Containing Each Point

Reorder rectangle and point queries to count all dominating rectangles efficiently.