C++ 1 line
if the overlap rectangle exist, there must be valid left-bottom and right-top points.\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector& rec1,
if the overlap rectangle exist, there must be valid left-bottom and right-top points.\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]) && \n                max(rec1[1], rec2[1]) < min(rec1[3], rec2[3]));        \n    }\n};
[]