100% faster | C++
Be a reason of motivation by upvoting the solution\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector& rec1, vector& rec2) {\n         int x1 =
***Be a reason of motivation by upvoting the solution***\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n         int x1 = max(rec1[0],rec2[0]);\n         int y1 = max(rec1[1],rec2[1]);\n         int x2 = min(rec1[2],rec2[2]);\n         int y2 = min(rec1[3],rec2[3]);\n        \n         if(x1 < x2 && y1 < y2)\n             return true;\n        return false;\n    }\n};
[]