Return True if s can be written as a block repeated two or more times ("abab" is "ab" twice; "aaa" is "a" three times; "abcab" is not).
A string with fewer than 2 letters gives False.
Example 1
Input:
repeated_substring_pattern('abab')
Output:
True
Example 2
Input:
repeated_substring_pattern('abcab')
Output:
False
0 <= len(s) <= 200000No results yet
Run your code to check it against the examples, or submit to run every test.