✅ Java | Easy-solution | Straightforward
solution\n Just use the math formula given in the description\n check for every element and find the maxium \n\n## code\n\npublic int areaOfMaxDiagonal(int[][] 
## solution\n* Just use the math formula given in the description\n* check for every element and find the maxium \n\n## code\n```\npublic int areaOfMaxDiagonal(int[][] dimensions) {\n\tdouble dig = 0d;\n\tint res = 0;\n\tfor(int[] arr: dimensions) {\n\t\tint r = arr[0], c=arr[1];\n\t\tdouble curr= Math.sqrt(r*r+c*c);\n\t\tif(dig < curr){\n\t\t\tdig = curr;\n\t\t\tres = r*c;\n\t\t}else if(dig == curr){\n\t\t\tres = Math.max(res, r*c);\n\t\t}\n\t}\n\treturn res;\n}\n```
['Java']