You are given a rectangles where rectangles[i] =
Calculate the total area covered by all given rectangles in the plane. Any area covered by overlapping rectangles must only be counted once.
Return the total area modulo
Constraints:
rectangles.length
rectangles[i].length
All rectangles have non zero area.
You are given a rectangles where rectangles[i] =
Calculate the total area covered by all given rectangles in the plane. Any area covered by overlapping rectangles must only be counted once.
Return the total area modulo
Constraints:
rectangles.length
rectangles[i].length
All rectangles have non zero area.