python easy solution with explain
\n\n\tclass Solution:\n\t\tdef isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:\n\n\t\t\t\tx1, y1, x2, y2=rec1\n\t\t\t\tx1_2, y1_2, x2_2, y2_
![image](https://assets.leetcode.com/users/images/fd7ed0f2-0cb0-40ca-814d-93d616f7912b_1654592039.3079536.png)\n\n\tclass Solution:\n\t\tdef isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:\n\n\t\t\t\tx1, y1, x2, y2=rec1\n\t\t\t\tx1_2, y1_2, x2_2, y2_2=rec2\n\n\t\t\t\tif y2_2<=y1:\n\t\t\t\t\treturn False\n\t\t\t\tif y1_2>=y2:\n\t\t\t\t\treturn False\n\n\t\t\t\tif x2_2<=x1:\n\t\t\t\t\treturn False\n\n\t\t\t\tif x1_2>=x2:\n\t\t\t\t\treturn False\n\n\t\t\t\treturn True
[]