coins and triangles

i do not understand the coins and triangles problem

1 Like

The problem essentially boils down to this. Given N coins, how high a triangle can you form?
Here height is the number of rows in the triangle.

For example,
with 1 coin -> max_height is 1.
with 12 coins -> max_height is 4.

Also, when you don’t understand a problem, read it again. Slowly. You’ll get it. All the best.

1 Like