100% faster C++ solution in 2 lines only
```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector& rec1, vector& rec2) {\n        int x=(min(rec1[2],rec2[2])-max(rec1[0],rec2[0])),y=(min(rec1
```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n        int x=(min(rec1[2],rec2[2])-max(rec1[0],rec2[0])),y=(min(rec1[3],rec2[3])-max(rec1[1],rec2[1]));\n        return (x<1 || y<1)?false:true;\n    }\n};
[]