We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f5b39 commit 8ca6747Copy full SHA for 8ca6747
Week03/pyramid_abdulsamet_kucuk.py
@@ -0,0 +1,7 @@
1
+def calculate_pyramid_height(n: int) -> int:
2
+ h = 0
3
+ used = 0
4
+ while used + h + 1 <= n:
5
+ h += 1
6
+ used += h
7
+ return h
0 commit comments