Java O(N) 1ms
You just need to compare Square of Diagonal, without needing to get the exact value;\ndiag ^ 2 = len ^ 2 + Width ^ 2;\n\n# Code\n\n    public int areaOfMaxDiago
You just need to compare Square of Diagonal, without needing to get the exact value;\ndiag ^ 2 = len ^ 2 + Width ^ 2;\n\n# Code\n```\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        int diagSq = 0, area = 0;\n        for (int[] d : dimensions) {\n            int ds = d[0] * d[0] + d[1] * d[1];\n            int ar = d[0] * d[1];\n            if (ds > diagSq) {\n                area = ar;\n                diagSq = ds;\n            }\n            else if (ds == diagSq && ar > area) area = ar;\n        }\n        return area;\n    }\n```
['Java']