Given a string s, return true if it can be built by repeating one of its substrings several times.
s
true
s = "abab"
Why
It is "ab" twice.
s = "aba"
false
1 <= s.length <= 10^4 `s` consists of lowercase English letters.
Topics
Implement repeatedSubstringPattern in the editor and return the answer — printing it is never graded.
repeatedSubstringPattern
Problem 68 of 1146 in the arena