Easy - 1ms - Java Solution
\n# Code\n\nclass Solution {\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        double diag = Double.MIN_VALUE;\n        int area = 0;\n\n        
\n# Code\n```\nclass Solution {\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        double diag = Double.MIN_VALUE;\n        int area = 0;\n\n        for(int []a : dimensions){\n            double d = Math.sqrt(a[0]*a[0] + a[1]*a[1]);\n            if(d == diag){\n                diag = d;\n                area = Math.max(area, (a[0]*a[1]));\n            }\n            else if(d>diag){\n                diag = d;\n                area = a[0]*a[1];\n            }\n        }\n        return area;\n    }\n}\n```\nPlease UpVote me if you liked the solution...
['Java']