Question: please help Given two rectangles in the plane (axis-aligned) defined by their bottom-left and top-right coordinates, calculate the total area covered by the union of
please help
Given two rectangles in the plane (axis-aligned) defined by their bottom-left and top-right coordinates, calculate the total area covered by the union of the two. Write an algorithm to solve this problem given input (A,B),(C,D) the bottom-left and top-right corners of the first rectangle, and (E, F), (G, H), the bottom-left and top-right corners of the second rectangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
