diff --git a/.DS_Store b/.DS_Store index a11d153..b31d3fc 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Rotation/796. RotateString.py b/Rotation/796. RotateString.py new file mode 100644 index 0000000..85a8b2a --- /dev/null +++ b/Rotation/796. RotateString.py @@ -0,0 +1,12 @@ +class Solution: + def rotateString(self, s: str, goal: str) -> bool: + if len(s) !=len(goal): + return False + + doubled = s+s + + return goal in doubled + + +#hello + \ No newline at end of file