โ† Microsoft questions
CodingReported in a candidate post, Jul 2025

Count overlapping rectangles

Filed under Microsoft

Given a list of rectangle coordinates represented as [x1, y1, x2, y2] (bottom-left and top-right corners), find the total number of overlapping rectangle pairs.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.