Animate the Inverted Pyramid pattern and understand how spaces grow and stars shrink by 2 per row.
A centered triangle that narrows from top to bottom. It mirrors the pyramid.
For row i: spaces = i, stars = 2*(n-i)-1. Each row gains one leading space and loses two stars.
Flip the pyramid: spaces start at 0 and grow, stars start at 2n-1 and shrink by 2 each row.