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 fa67799 + be29640 commit def6724Copy full SHA for def6724
Week03/pyramid_ridvan_celebi.py
@@ -0,0 +1,8 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+
4
+ while number_of_blocks >= (height + 1):
5
+ height += 1
6
+ number_of_blocks -= height
7
8
+ return height
0 commit comments