Problems > Diamond > Editorial

Diamond — Solution & Editorial

Back to the Problem

Row distance d from the middle row has 2(N−d)−1 stars indented by d spaces.

Complexity: O(N2) output