c++ 1-line solution
1-line solution\n\n\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n        return (max(rec1[0], rec2[0]) < min
1-line solution\n\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n        return (max(rec1[0], rec2[0]) < min(rec1[2], rec2[2])) && (max(rec1[1], rec2[1]) < min(rec1[3], rec2[3]));\n    }\n};\n```
[]