Easy Optimise Solution
```\nclass Solution {\npublic:\n    int countGoodRectangles(vector>& rectangles) {\n        int side=INT_MIN,ct=0;\n        \n        for(auto ele:rectangles){\
```\nclass Solution {\npublic:\n    int countGoodRectangles(vector<vector<int>>& rectangles) {\n        int side=INT_MIN,ct=0;\n        \n        for(auto ele:rectangles){\n            side=max(side,(min(ele[0],ele[1])));\n        }\n        \n        for(auto ele:rectangles){\n            if(min(ele[0],ele[1])==side)ct++;\n        }\n        return ct;\n    }\n};
['Array', 'C++']