29 ms faster than 100% Java submissions
class Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        boolean flag=false;\n        int r1x1=rec1[0];\n        int r1y1=rec1
class Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        boolean flag=false;\n        int r1x1=rec1[0];\n        int r1y1=rec1[1];\n        int r1x2=rec1[2];\n        int r1y2=rec1[3];\n        int r2x1=rec2[0];\n        int r2y1=rec2[1];\n        int r2x2=rec2[2];\n        int r2y2=rec2[3];\n        System.out.println(r1x1+" "+r1y1+" "+r1x2+" "+r1y2+" "+r2x1+" "+r2y1+" "+r2x2+" "+r2y2);\n        if(((r2x1>r1x1&&r2x1<r1x2)||(r2x2>r1x1&&r2x2<r1x2)||(r1x1>r2x1&&r1x1<r2x2)||(r1x2>r2x1&&r1x2<r2x2))&&((r2y1>r1y1&&r2y1<r1y2)||(r2y2>r1y1&&r2y2<r1y2)||(r1y1>r2y1&&r1y1<r2y2)||(r1y2>r2y1&&r1y2<r2y2)))\n        {\n            flag=true;\n        }\n        \n        return flag;\n    }\n}
['Java']