This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
GoalYou will be given a integer N, your goal is to draw the highest truncated pyramid that contains N “bricks”.
Each floor of a pyramid contains one brick more than the previous one.
Each brick is a
Be careful not to add spaces at the end of a line.
Line 1: An integer N, the number of bricks you have
The truncated pyramid
1 ≤ N ≤ 1000
A higher resolution is required to access the IDE