C++ : Easy Solution
\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        int ans=0,mn=0;\n        for(int i=0;i<rectangles.size();i+
```\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        int ans=0,mn=0;\n        for(int i=0;i<rectangles.size();i++)\n            mn=max(mn,min(rectangles[i][0],rectangles[i][1]));\n        for(int i=0;i<rectangles.size();i++)\n            if(rectangles[i][0]>=mn&&rectangles[i][1]>=mn)\n                ans++;\n        return ans;\n    }\n};\n```
['C']