题解 | #旋转字符串(二)#
旋转字符串(二)
https://www.nowcoder.com/practice/3cd3dcd714b643ec99ab9b9d100262e1
class Solution: def solve(self , A , B ): # write code here if len(A) != len(B): return False return B in ((A+A)[1:-1:])
旋转字符串(二)
https://www.nowcoder.com/practice/3cd3dcd714b643ec99ab9b9d100262e1
class Solution: def solve(self , A , B ): # write code here if len(A) != len(B): return False return B in ((A+A)[1:-1:])
相关推荐