โ† Microsoft questions

Determine and resolve rectangle overlap

Filed under Microsoft

Determine if two rectangles overlap. If they do, separate them within a given screen size, printing a message if separation is impossible.

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.