Problems > The Staircase > Editorial

The Staircase — Solution & Editorial

Back to the Problem

Two nested loops, or per-row string arithmetic: (N−i) spaces + i hashes.

Complexity: O(N2) output