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 b49d178Copy full SHA for b49d178
Week03/pyramid_alp_ozdemir.py
@@ -0,0 +1,7 @@
1
+def calculate_pyramid_height(blocks):
2
+ layer = 0
3
+ while blocks >= (layer + 1):
4
+ layer += 1
5
+ blocks -= layer
6
+
7
+ return layer
0 commit comments