Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Rectangle Area (Medium 223)

Find the total area covered by two rectilinear rectangles in a 2D plane.

Solution:

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.



Installation

Run make to run python and Swift files.