Easy To Understand C++ Solution ✅✅
Code\n\nclass Solution {\npublic:\n    long long largestSquareArea(vector<vector<int>>& left, vector<vector<int>>& right) {\n        int n=left.size();\n       
# Code\n```\nclass Solution {\npublic:\n    long long largestSquareArea(vector<vector<int>>& left, vector<vector<int>>& right) {\n        int n=left.size();\n        vector<vector<int>> temp;\n        long ans=0;\n        for(int i=0;i<n;i++){\n            for(int j=i+1;j<n;j++){\n                int a=max(left[i][0],left[j][0]);\n                int b=max(left[i][1],left[j][1]);\n                int c=min(right[i][0],right[j][0]);\n                int d=min(right[i][1],right[j][1]);\n                if(a<c && b<d){\n                    long side=0;\n                    if((c-a)<(d-b)){\n                        side=c-a;\n                    }else{\n                        side=d-b;\n                    }\n                    ans=max(ans,side*side);\n                }\n            }\n        }\n        return ans;\n    }\n};\n```
['C++']