From b41d6a8929931c163c3223e1485533cb8f41bdae Mon Sep 17 00:00:00 2001 From: SinnoLn Date: Mon, 24 Aug 2026 23:39:31 +0900 Subject: [PATCH] 3014. Minimum Number of Pushes to Type Word I --- ...4. Minimum Number of Pushes to Type Word I.java" | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 "leetcode3/\354\235\264\354\247\204\355\235\254/3014. Minimum Number of Pushes to Type Word I.java" diff --git "a/leetcode3/\354\235\264\354\247\204\355\235\254/3014. Minimum Number of Pushes to Type Word I.java" "b/leetcode3/\354\235\264\354\247\204\355\235\254/3014. Minimum Number of Pushes to Type Word I.java" new file mode 100644 index 00000000..64418489 --- /dev/null +++ "b/leetcode3/\354\235\264\354\247\204\355\235\254/3014. Minimum Number of Pushes to Type Word I.java" @@ -0,0 +1,13 @@ +class Solution { + public int minimumPushes(String word) { + int ans = 0; + + for(int i = 0; i < word.length(); i++) { + int idx = i / 8; + + ans += idx + 1; + } + + return ans; + } +} \ No newline at end of file