Search
⌘K

Leetcode 223. Rectangle Area

Given coordinates of two axis-aligned rectangles, compute the total area covered by both. The key is to sum their individual areas and subtract the area of their intersection (zero if they don't overlap).

Asked at:

Google

Google


Question Timeline

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

Late December, 2024

Google

Google

Mid-level

Rectangle Area

Comments

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