Java | Descriptive Variable names for understanding
Here is my solution with some descriptive variable names to understand better\n\nclass Solution {\n    \n\tstatic int x = 0;\n\tstatic int y = 1;\n    public lo
Here is my solution with some descriptive variable names to understand better\n```\nclass Solution {\n    \n\tstatic int x = 0;\n\tstatic int y = 1;\n    public long largestSquareArea(int[][] bottomLeft, int[][] topRight) {\n        \n\t\tlong maxSquareSide = 0;\n\t\tint n = bottomLeft.length;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint[] FirstRectangleBL = bottomLeft[i];\n\t\t\tint[] FirstRectangleTR = topRight[i];\n\n\t\t\tfor (int j = i + 1; j < n; j++) {\n\n\t\t\t\tint[] SecondRectangleBL = bottomLeft[j];\n\t\t\t\tint[] SecondRectangleTR = topRight[j];\n\n\t\t\t\tif (SecondRectangleBL[x] >= FirstRectangleTR[x] || SecondRectangleTR[x] <= FirstRectangleBL[x])\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (SecondRectangleBL[y] >= FirstRectangleTR[y] || FirstRectangleTR[y] <= FirstRectangleBL[y])\n\t\t\t\t\tcontinue;\n\n\t\t\t\tint OverLappedRectangleBLx = Math.max(FirstRectangleBL[x], SecondRectangleBL[x]);\n\t\t\t\tint OverLappedRectangleBLy = Math.max(FirstRectangleBL[y], SecondRectangleBL[y]);\n\n\t\t\t\tint OverLappedRectangleTRx = Math.min(FirstRectangleTR[x], SecondRectangleTR[x]);\n\t\t\t\tint OverLappedRectangleTRy = Math.min(FirstRectangleTR[y], SecondRectangleTR[y]);\n\n\t\t\t\tint OverLappedRectangleLength = OverLappedRectangleTRx - OverLappedRectangleBLx;\n\t\t\t\tint OverLappedRectangleWidth = OverLappedRectangleTRy - OverLappedRectangleBLy;\n\n\t\t\t\tint side = Math.min(OverLappedRectangleLength, OverLappedRectangleWidth);\n\n\t\t\t\tmaxSquareSide = Math.max(maxSquareSide, side);\n\n\n\t\t\t}\n\t}\n\n\treturn maxSquareSide * maxSquareSide;\n}\n}\n```
[]