Search
⌘K

Leetcode 836. Rectangle Overlap

Check whether two axis-aligned rectangles have a positive-area intersection (touching edges or corners don't count) by verifying that their projections on both the x- and y-axes overlap. Equivalently, return false if one rectangle is entirely left/right or above/below the other; otherwise return true.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.