796. Rotate String
![Tapan Rachchh](https://cdn.hashnode.com/res/hashnode/image/upload/v1681351597752/874b6c96-0836-4b4e-bb68-d1ffbf6ce7bd.png)
1 min read
![](https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/0sBTrm726C8/upload/67323aba89e5fb05895748d6ab05eab8.jpeg)
class Solution:
def rotateString(self, s: str, goal: str) -> bool:
return len(goal) == len(s) and goal in s * 2
0
Subscribe to my newsletter
Read articles from Tapan Rachchh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
![Tapan Rachchh](https://cdn.hashnode.com/res/hashnode/image/upload/v1681351597752/874b6c96-0836-4b4e-bb68-d1ffbf6ce7bd.png)