Basic Approach (From Youtube) C++
\nclass Solution {\npublic:\n    \n    \n   int countGoodRectangles(vector<vector<int>>& rectangles) {\n int maxlen=0,maxwid=0,count=0;\nfor(int i=0;i<rectangle
```\nclass Solution {\npublic:\n    \n    \n   int countGoodRectangles(vector<vector<int>>& rectangles) {\n int maxlen=0,maxwid=0,count=0;\nfor(int i=0;i<rectangles.size();i++)\n{\nmaxwid= min(rectangles[i][0],rectangles[i][1]);\nif(maxwid>maxlen)\n{\nmaxlen=maxwid;\ncount=0;\n}\nif(maxlen==maxwid)\n{\ncount++;\n}\n}\nreturn count;   }\n};\n```
[]