Problem 2189 · Medium

Number of Ways to Build House of Cards

Each row of upright triangles costs a fixed number of cards. Fill a table of counts from zero cards up, adding the houses that sit on top of each row size.

Open the interactive visualisation