my-solutions/problems/223-rectangle-area
2022-11-17 17:18:32 +05:00
..
lib.c Problem 223: Rectangle area 2022-11-17 16:56:24 +05:00
lib.h Problem 223: Rectangle area 2022-11-17 16:56:24 +05:00
main.c Problem 223: Rectangle area 2022-11-17 16:56:24 +05:00
Makefile Makefile - symbolic link 2022-11-17 17:18:32 +05:00
readme.md Problem 223: Rectangle area 2022-11-17 16:56:24 +05:00

223. Rectangle area

Leetcode

Given the coordinates of two rectilinear rectangles in a 2D plane, return the total area covered by the two rectangles.

The first rectangle is defined by its bottom-left corner (ax1, ay1) and its top-right corner (ax2, ay2).

The second rectangle is defined by its bottom-left corner (bx1, by1) and its top-right corner (bx2, by2).