Content-Length: 249935 | pFad | http://github.com/ramtanniru/Leetcode/commit/625cd3d16d713c591c4af6cbe8cf4cde7336b81d

AA 796 · ramtanniru/Leetcode@625cd3d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ramtanniru/Leetcode/commit/625cd3d16d713c591c4af6cbe8cf4cde7336b81d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy