Help please. I'm working on an algorithm with this requirement.
Given 4 "right" rectangles (right rectangles have edges parallel to x or y), find the area that is covered by any of them
For example, the area in grey are covered by any of those 4 rectangles in the picture below.enter image description here
I am not quite understand the question. Could someone help me please?