Math Fundamentals18 sections · 814 units
Open in Course

Problem - Rectangle Area

(Overlapping rectangles)

Given two axis-aligned rectangles on a coordinate plane, find the total area they cover. Rectangles may overlap.

Each rectangle is defined by its bottom-left corner (x₁, y₁) and top-right corner (x₂, y₂). You need to compute area₁ + area₂ - overlap_area.

This problem combines rectangle area calculation with overlap detection.