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.
1 parent 71f5b39 commit c965364Copy full SHA for c965364
Week03/pyramid_yaren_ozgur.py
@@ -0,0 +1,7 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+ used = 0
4
+ while used + (height + 1) <= number_of_blocks:
5
+ height += 1
6
+ used += height
7
+ return height
0 commit comments