freaking lines as a rectangles, invalid test case
these are invalid test cases\n\nanyway, here is the working code\n\n\'\'\'\n\n\t\t\t\tclass Solution:\n\t\t\t\tdef isRectangleOverlap(self, rec1: List[int], rec
these are invalid test cases\n\nanyway, here is the working code\n\n\'\'\'\n\n\t\t\t\tclass Solution:\n\t\t\t\tdef isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:\n\t\t\t\t\tx1, y1, x2, y2 = 0, 1, 2, 3\n\n\t\t\t\t\tif rec1[x1]==rec1[x2] or rec1[y1]==rec1[y2] or rec2[x1]==rec2[x2] or rec2[y1]==rec2[y2]:\n\t\t\t\t\t\treturn False\n\n\t\t\t\t\treturn not((rec1[x2] <= rec2[x1] or rec1[y2] <= rec2[y1]) or\n\t\t\t\t\t\t\t   (rec2[x2] <= rec1[x1] or rec2[y2] <= rec1[y1]))\n\n        [-1,0,1,1]\n        [0,-1,0,1]   a freaking vertical line\n        \n             |  \n             | \n             y\'y\n        ---x------------\n             x\'  \n             |   \n        \'\'\'\n\t\t\n\t\t[-1,0,1,1]\n        [0,0,0,1]     a freaking horizontal line
[]