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