c++(0ms) 
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```cpp []
class Solution {
public:
  int areaOfMaxDiagonal(vector<vector<int>>& dimensions) {
    int k = 0, s = 0;

    for(auto &d: dimensions){
      int kk = d[0]*d[0] + d[1]*d[1];
      int ss = d[0]*d[1];
      if(kk > k) k = kk, s = ss;
      else if(kk == k && ss > s) s = ss;
    }      

    return s;
  }
};
```
['C++']