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:

Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late December, 2024

Mid-level
Rectangle Area
Your account is free and you can post anonymously if you choose.