Skip to content

Commit 625cd3d

Browse files
committed
796
1 parent 409c7f3 commit 625cd3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Nov-3-24.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)