We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40826fc + 0dc8896 commit 2098e2aCopy full SHA for 2098e2a
Week03/pyramid_burak_ozturk.py
@@ -0,0 +1,7 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+ count = 0
4
+ while count <= number_of_blocks:
5
+ height += 1
6
+ count += height
7
+ return height - 1
0 commit comments