Only one line of code!
Code\n\nclass Solution:\n    def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:\n        return rec1[2] > rec2[0] and rec1[3] > rec2[1] and
# Code\n```\nclass Solution:\n    def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:\n        return rec1[2] > rec2[0] and rec1[3] > rec2[1] and rec2[2] > rec1[0] and rec2[3] > rec1[1]\n```
['Python3']