1 line | C++ | Think when rectangles don't overlap
Intution\nThink of the cases when rectangles don\'t overlap.\n\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n
**Intution**\nThink of the cases when rectangles don\'t overlap.\n```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {\n     return(rec2[1]>=rec1[3] || rec2[3]<=rec1[1] ||rec2[0]>=rec1[2] || rec2[2]<=rec1[0] )?false:true;\n       \n    }\n};\n```\n![image](https://assets.leetcode.com/users/images/302efd05-e2a4-49a1-ad5d-0c8f63c27b63_1625127493.0300734.jpeg)\n\nDo UPVOTE if it helps :)\nIf you have any doubt or suggestion then please write in comments.
['C']