One line Solution in C++
I know it seems rubbish here\nbut the simple concept is that if any of x points or y points in both rectangles overlap then we return false\n\n\nclass Solution 
I know it seems rubbish here\nbut the simple concept is that if any of x points or y points in both rectangles overlap then we return false\n\n\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n     \n     return rec2[0]<rec1[2]&&rec2[2]>rec1[0]&&rec2[1]<rec1[3]&&rec2[3]>rec1[1]; \n\n    }\n};\n```
['C++']