C++ || MOST OPTIMISED
Code\n\nclass Solution {\npublic:\n    int areaOfMaxDiagonal(vector<vector<int>>& v) {\n        int a = 0, b = 0;\n        for(auto &i: v){\n            // cout
# Code\n```\nclass Solution {\npublic:\n    int areaOfMaxDiagonal(vector<vector<int>>& v) {\n        int a = 0, b = 0;\n        for(auto &i: v){\n            // cout<<i[0]*i[0]+i[1]*i[1]<<" "<<a<<endl;\n            if(i[0]*i[0]+i[1]*i[1] > a){\n                a = i[0]*i[0]+i[1]*i[1];\n                b = i[0]*i[1];\n            }else if(i[0]*i[0]+i[1]*i[1] == a){\n                b = max(b,i[0]*i[1]);\n            }\n        }\n        return b;\n    }\n};\n```
['C++']