C++ easy solution
\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        vector<int>arr;\n        int temp=1;\n        for(int i=0;i
```\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        vector<int>arr;\n        int temp=1;\n        for(int i=0;i<rectangles.size();i++){\n            int length=rectangles[i][0];\n            int breadth=rectangles[i][1];\n            int ans=min(length,breadth);\n            arr.push_back(ans);\n        }\n      \n        sort(arr.begin(),arr.end());\n        int l=arr.size()-1;\n        for(int i=l;i>0;i--){\n            if(arr[i]!=arr[i-1]){\n                break;\n            \n            }\n            temp++;\n        }\n        return temp;\n    }\n};\n```
['Array', 'C']