1
class Solution:
2
def repeatedSubstringPattern(self, s: str) -> bool:
3
for i in range(1, len(s) // 2 + 1):
4
if s[:i] * (len(s) // i) == s:
5
return True
6
return False

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0