Search
⌘K

Leetcode 883. Projection Area of 3D Shapes

Given an n×n grid of tower heights, compute the total area of the top, front, and side projections (i.e., the "shadows" onto the xy, yz, zx planes). This reduces to summing the count of nonzero cells (top) plus the max in each row (side) and the max in each column (front).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.