3
int projectionArea(vector<vector<int>> &grid) {6
for (int i = 0; i < grid.size(); i++) {7
for (int j = 0; j < grid[0].size(); j++) {8
if (grid[i][j]) // if some cubes are present it is seen as of area 115
for (int i = 0; i < grid.size(); i++) {17
for (int j = 1; j < grid[0].size(); j++) {18
m = max(m, grid[i][j]); // from front, the tower with heightest height19
// can only be seen in column25
for (int j = 0; j < grid[0].size(); j++) {27
for (int i = 1; i < grid.size(); i++) {28
m = max(m, grid[i][j]); // // from side, the tower with heightest height29
// can only be seen in row