Skip to content

Commit 20ce64d

Browse files
committed
3014
1 parent 80ba27f commit 20ce64d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Solution:
2+
def minimumPushes(self, word: str) -> int:
3+
n = len(word)
4+
5+
lst = []
6+
for i in range(26):
7+
q = i // 8
8+
lst.append(q+1)
9+
10+
# print(lst)
11+
12+
return sum(lst[:n])

0 commit comments

Comments
 (0)