title: Finding the area of intersection of multiple overlapping rectangles in Python
body: <p>I tried to using the algorithm shown here: <a href="https://discuss.leetcode.com/topic/15733/my-java-solution-sum-of-areas-overlapped-area" rel="noreferrer">https://discuss.leetcode.com/topic/15733/my-java-solution-sum-of-areas-overlapped-area</a></p>
  
  <p>However, that algorithm only deals with finding the areas of only TWO overlapped rectangles. </p>
  
  <p>How would I go on about finding the area of the intersection of say 3, or 4 or 5, etc number of overlapping rectangles, if I know the length, breadth of each rectangle?</p>