class Solution(object):
    def repeatedSubstringPattern(self, s):
        return True if re.match(r'(\w+)\1+$', s) else False

 

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-11-04
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案