Problems > Hollow Square > Editorial

Hollow Square — Solution & Editorial

Back to the Problem

A cell is border iff its row or column index is 1 or N.

Complexity: O(N2) output