Skip to content

Commit 71ac091

Browse files
Merge pull request #1902 from CodingTestStudy2/이진희
[이진희] Day26
2 parents 110bae7 + b41d6a8 commit 71ac091

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Solution {
2+
public int minimumPushes(String word) {
3+
int ans = 0;
4+
5+
for(int i = 0; i < word.length(); i++) {
6+
int idx = i / 8;
7+
8+
ans += idx + 1;
9+
}
10+
11+
return ans;
12+
}
13+
}

0 commit comments

Comments
 (0)