7 lines
149 B
Kotlin
7 lines
149 B
Kotlin
|
class Solution {
|
||
|
fun rotateString(
|
||
|
s: String,
|
||
|
goal: String,
|
||
|
): Boolean = s.length == goal.length && (s + s).contains(goal)
|
||
|
}
|