Submission beat 97% of other submissions' runtime.
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```java []\nclass Solution {\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        int result = 0;\n        int diagPov2 = 0;     \n        for (int i = 0; i < dimensions.length; i++) {\n            int temp = dimensions[i][0] * dimensions[i][0] + dimensions[i][1] * dimensions[i][1];\n            if (temp > diagPov2) {\n                result = dimensions[i][0] * dimensions[i][1];\n                diagPov2 = temp;\n            } else if (temp == diagPov2){\n                result = Math.max(result, dimensions[i][0] * dimensions[i][1]);\n            }\n        }    \n        return result;\n    }\n}\n```
['Java']