Projection Area of 3D Shapes (LeetCode 883)
Projection Area of 3D Shapes (LeetCode 883)
Views
Top: count non-zero cells. Front/side: max per row/column.
Formula
Sum those three contributions.
Tip
Do not forget zeros do not contribute to the top projection.
See Linkjob.