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 aeb2807 + a2f7db9 commit 55da53eCopy full SHA for 55da53e
Week03/pyramid_onur_konuk.py
@@ -0,0 +1,10 @@
1
+def calculate_pyramid_height(blocks):
2
+ height = 0
3
+ required_blocks = 1
4
+
5
+ while blocks >= required_blocks:
6
+ blocks -= required_blocks
7
+ height += 1
8
+ required_blocks += 1
9
10
+ return height
0 commit comments