We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0e97ee + 3fe38b7 commit edeca7bCopy full SHA for edeca7b
Week03/pyramid_yagmur_tokdemir.py
@@ -0,0 +1,10 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+
3
+ height = 0
4
+ total_boxes = 0
5
6
+ while total_boxes + (height + 1) <= number_of_blocks:
7
+ height += 1
8
+ total_boxes += height
9
10
+ return height
0 commit comments