← Microsoft questions

Find dimensions of an overlapped rectangle

Filed under Microsoft

Given two axis-aligned rectangles in the xy-plane, each defined by its bottom-left (x1, y1) and top-right (x2, y2) coordinates, calculate the width and height of their overlapping region. If they do…

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.