very easy cpp solution- brute force
Code\n\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n    \n        int a=max(rec1[0],rec1[2]);\n        int b
# Code\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n    \n        int a=max(rec1[0],rec1[2]);\n        int b=max(rec2[0],rec2[2]);\n        int c=min(rec1[0],rec1[2]);\n        int d=min(rec2[0],rec2[2]);\n\n        int e=max(rec1[1],rec1[3]);\n        int f=max(rec2[1],rec2[3]);\n        int g=min(rec1[1],rec1[3]);\n        int h=min(rec2[1],rec2[3]);\n\n\n        if(a<=d || b<=c){\n            return false;\n        }\n        else{\n            if(e<=h || f<=g ){\n                return false;\n            }\n            else{\n                return true;\n            }\n        }\n\n        return false;\n    }\n};\n```
['C++']