[Python3] freq table
Algo\nFor each pair of l and w, collect the frequency table of min(l, w). Return the freq of max of such min. \n\nImplementation\n\nclass Solution:\n    def cou
**Algo**\nFor each pair of `l` and `w`, collect the frequency table of `min(l, w)`. Return the freq of max of such min. \n\n**Implementation**\n```\nclass Solution:\n    def countGoodRectangles(self, rectangles: List[List[int]]) -> int:\n        freq = {}\n        for l, w in rectangles: \n            x = min(l, w)\n            freq[x] = 1 + freq.get(x, 0)\n        return freq[max(freq)]\n```\n\n**Analysis**\nTime complexity `O(N)`\nSpace complexity `O(N)`
['Python3']