Matej Focko
340d234a4f
URL: https://leetcode.com/problems/rotate-string/ Signed-off-by: Matej Focko <me@mfocko.xyz>
6 lines
149 B
Kotlin
6 lines
149 B
Kotlin
class Solution {
|
|
fun rotateString(
|
|
s: String,
|
|
goal: String,
|
|
): Boolean = s.length == goal.length && (s + s).contains(goal)
|
|
}
|