Easy
String
459. Repeated Substring Pattern
Given a string s
, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together.
Example 1:
Example 2:
Example 3:
Constraints:
s.length
<= 104s
consists of lowercase English letters.下面一行的解是我弟教我的,跟鬼一樣。
MarsgoatAug 21, 2023