Java faster than 100%
Not sure what it is about this problem but it was NOT intiutive for me and took more time and effort that some of the hard problems. Here is the end result:\n\n
Not sure what it is about this problem but it was NOT intiutive for me and took more time and effort that some of the hard problems. Here is the end result:\n\n    static final int X1 = 0, X2 = 2, Y1 = 1, Y2 = 3;\n    \n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        \n        return  rec1[X2] > rec2[X1] && rec1[X1] < rec2[X2] && \n                rec1[Y2] > rec2[Y1] && rec1[Y1] < rec2[Y2] ;\n    }
[]