Python3 ✅✅✅ || Faster than 100% BWAI✅✅✅ || Memory beats 33.33% 🧠🧠
\n\n# Code\n\nfrom math import sqrt\n\nclass Solution:\n    def areaOfMaxDiagonal(self, dimensions) -> int:\n        dimensions.sort(key=lambda x: x[0] * x[1], 
\n\n# Code\n```\nfrom math import sqrt\n\nclass Solution:\n    def areaOfMaxDiagonal(self, dimensions) -> int:\n        dimensions.sort(key=lambda x: x[0] * x[1], reverse=True)\n        maxArea = 0\n        maxDiag = 0\n        for n in dimensions:\n            diag = sqrt(n[0] * n[0] + n[1] * n[1])\n            if diag > maxDiag:\n                maxArea = n[0] * n[1]\n                maxDiag = diag\n        return maxArea\n```
['Python3']