16ms Beats 100%
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 {\n    func areaOfMaxDiagonal(_ dimensions: [[Int]]) -> Int {\n        var tempResult: Int = 0\n        var result = 0\n        for dimension in dimensions {\n            var temp: Int = 0\n            for num in dimension {\n                temp += num * num\n            }\n            if temp > tempResult {\n                tempResult = temp\n                result = dimension.reduce(1, *)\n            } else if temp == tempResult {\n                result = max(dimension.reduce(1, *), result)\n            }\n        }\n        return result\n    }\n}\n```
['Swift']