Find the total area covered by two rectilinear rectangles in a 2D plane.
Click here
Check if horizontal and vertical lines in each rectangle overlap. Line intersection can be checked by max(x1, x3) < min(x2, x4). O(1) time, O(1) space.Run make to run python and Swift files.