There was an error while loading. Please reload this page.
1 parent 409c7f3 commit 625cd3dCopy full SHA for 625cd3d
Nov-3-24.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def rotateString(self, s: str, goal: str) -> bool:
3
+ if len(s)!=len(goal):
4
+ return False
5
+ s += s
6
+ return goal in s
0 commit comments