Skip to content

Commit 77631c5

Browse files
committed
Day26
1 parent 275067d commit 77631c5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

leetcode3/최민지/3014.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Solution:
2+
def minimumPushes(self, word: str) -> int:
3+
n = len(word)
4+
5+
result = 0
6+
7+
for i in range(n):
8+
result += i // 8 + 1
9+
10+
return result
11+

0 commit comments

Comments
 (0)