C++ fast and Simple (You'll love it guaranteed.)
\nIf you have Learned something new please give it upvote;\notherwise thank you for having a look \uD83D\uDE4F\uD83C\uDFFB\n\nWe have to find out the minimum le
\nIf you have Learned something new please give it upvote;\notherwise thank you for having a look \uD83D\uDE4F\uD83C\uDFFB\n\nWe have to find out the minimum length of rectangles.\nbcoz we have to cut out the remaining part of rectangle in order to make it a Square.\n\n```\nint countGoodRectangles(vector<vector<int>>& rectangles) {\n\tint cnt = 0; int mx = 0;\n\tfor(int i=0; i<rectangles.size(); i++){\n\t\tint mn = min(rectangles[i][0], rectangles[i][1]);\n\t\tif(mn > mx){\n\t\t\tcnt = 1;\n\t\t\tmx = mn;\n\t\t}\n\t\telse if(mn == mx){\n\t\t\tcnt++;\n\t\t}\n\t}\n\treturn cnt;\n}\n```
[]