leetcode223专题

leetcode223. Rectangle Area

Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as shown in the figure. 问题关键在于重合的部分怎么计算 class So