HTMLify
LeeCode - Rotate String - Python
Views: 221 | Author: abh
class Solution:
def rotateString(self, s: str, goal: str) -> bool:
for _ in range(len(s)):
s = s[1:] + s[0]
print(s)
if s == goal:
return True
return False