JAVA -1ms
class Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max=Integer.MIN_VALUE,c=0;\n        for(int i=0;i<rectangles.length;i++)
class Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max=Integer.MIN_VALUE,c=0;\n        for(int i=0;i<rectangles.length;i++){\n            int nmax=Math.min(rectangles[i][0],rectangles[i][1]);\n            if(max<nmax){\n                max=nmax;\n                c=1;\n            } \n            else if(max==nmax)\n                c++; \n        }\n        return c;\n    }\n}\n
['Java']