JAVA_Projection Area of 3D Shapes_LeetCode 883 풀이 class Solution { public int projectionArea(int[][] grid) { int res = 0, x, y; for (int i = 0; i < grid.length; ++i) { x = 0; y = 0; for (int j = 0; j < grid.length; ++j) { x = Math.max(x, grid[i][j]); y = Math.max(y, grid[j][i]); if (grid[i][j] > 0) ++res; } res += x + y; } return res; } } * 출처 Projection Area of 3D Shapes - LeetCode Can you solve this real interview question? Projection Area of 3D Shapes - You are given an n x n grid where we pl...
#JAVA
#JAVA_LeetCode883
#JAVA_ProjectionAreaof3DShapes
#JAVA_ProjectionAreaof3DShapes_LeetCode883
#ProjectionAreaof3DShapes_LeetCode883
원문링크 : JAVA_Projection Area of 3D Shapes_LeetCode 883