[Java] solution without map beats 100%
\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max = 0;\n        int count = 0;\n        for (int[] r : rectangles){\
```\nclass Solution {\n    public int countGoodRectangles(int[][] rectangles) {\n        int max = 0;\n        int count = 0;\n        for (int[] r : rectangles){\n            int min = Math.min(r[0], r[1]);\n            if (min > max){\n                max = min;\n                count = 1;\n            }\n            else if (min == max) count++;\n        }\n        return count;\n    }\n}\n```
['Java']