C++ One Liner || 0 ms || Explained
Find Explaination here:\nhttps://leetcode.com/problems/rectangle-area/discuss/2382263/short-and-simple-solution-fully-explained\n\nclass Solution {\npublic:\n  
Find Explaination here:\nhttps://leetcode.com/problems/rectangle-area/discuss/2382263/short-and-simple-solution-fully-explained\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```
['Math', 'C++']