diff --git a/kt/rotate-string.kt b/kt/rotate-string.kt new file mode 100644 index 0000000..be46978 --- /dev/null +++ b/kt/rotate-string.kt @@ -0,0 +1,6 @@ +class Solution { + fun rotateString( + s: String, + goal: String, + ): Boolean = s.length == goal.length && (s + s).contains(goal) +}