MCPcopy Create free account
hub / github.com/Hsinha11/Leetcode-solutions / rotateString

Method rotateString

812-rotate-string/rotate-string.py:2–3  ·  view source on GitHub ↗
(self, s: str, goal: str)

Source from the content-addressed store, hash-verified

1class Solution:
2 def rotateString(self, s: str, goal: str) -> bool:
3 return goal in s*2 and len(goal) ==len(s)
4

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected