Beats 68.09%of users with Python😁 and Beats 77.66%of users with Python😁 6.8 and 7.7 balance
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution(object):\n    def countGoodRectangles(self, rectangles):\n        new_list = []\n        k = 0\n        for i in rectangles:\n            h = min(i[0], i[1])\n            new_list.append(h)\n            k = max(k, h)\n        return sum(1 for i in new_list if i >=k)\n```
['Python']