From 71ae1dc3642b01638bcb8340d4676ccaa14a5c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=97=BC=ED=98=9C=EC=A0=95?= <122238744+cyzlcyzl@users.noreply.github.com> Date: Fri, 16 Oct 2026 10:22:15 +0900 Subject: [PATCH] Create 4070. Minimum Rotations to Dial a Number I.java --- .... Minimum Rotations to Dial a Number I.java" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "leetcode3/\354\227\274\355\230\234\354\240\225/4070. Minimum Rotations to Dial a Number I.java" diff --git "a/leetcode3/\354\227\274\355\230\234\354\240\225/4070. Minimum Rotations to Dial a Number I.java" "b/leetcode3/\354\227\274\355\230\234\354\240\225/4070. Minimum Rotations to Dial a Number I.java" new file mode 100644 index 00000000..5a7f859d --- /dev/null +++ "b/leetcode3/\354\227\274\355\230\234\354\240\225/4070. Minimum Rotations to Dial a Number I.java" @@ -0,0 +1,17 @@ +// O(n) + +class Solution { + public int minRotations(String s) { + s = "0" + s; + int rotation = 0; + for (int i = 0; i