JS O(N) solution
Please check out this solution\n\n/**\n * @param {number[][]} rectangles\n * @return {number}\n */\nvar countGoodRectangles = function(rectangles) {\n    let ha
Please check out this solution\n```\n/**\n * @param {number[][]} rectangles\n * @return {number}\n */\nvar countGoodRectangles = function(rectangles) {\n    let hash = {}\n    let max = 0\n    for(let [l,w] of rectangles) {\n        let side = Math.min(l,w)\n        max = Math.max(max, side)\n        hash[side] = hash[side] + 1 || 1\n    }\n    \n    return hash[max]\n};```
['JavaScript']