Maximum Area of Longest Diagonal Rectangle
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    import math\n    def areaOfMaxDiagonal(self, dimensions):\n        maxd = 0\n        area = 0\n        for i,j in dimensions:\n            diagonal = math.sqrt(i**2 + j**2)\n            if diagonal > maxd:\n                maxd = diagonal\n                area = i*j\n            elif diagonal == maxd:\n                area = max(area,i*j)\n        return area       \n```
['Python']