Elegant Python Solution Beat 100%
The idea is simple. Just make sure the "overlaping" area is valid.\n\nclass Solution:\n    def isRectangleOverlap(self, rec1: \'List[int]\', rec2: \'List[int]\'
The idea is simple. Just make sure the "overlaping" area is valid.\n```\nclass Solution:\n    def isRectangleOverlap(self, rec1: \'List[int]\', rec2: \'List[int]\') -> \'bool\':\n        left = max(rec1[0], rec2[0])\n        right = min(rec1[2], rec2[2])\n        bottom = max(rec1[1], rec2[1])\n        up = min(rec1[3], rec2[3])\n        \n        if left < right and up > bottom:\n            return True\n        else:\n            return False\n        \n```
[]