Repeating String
Given a lowercase alphabet string s
, return whether it’s a repeating string.
Constraints
n ≤ 100,000
wheren
is the length ofs
https://binarysearch.com/problems/Repeating-String
Examples
Example 1
Input
- s =
dogdogdog
Output
- answer =
True
Explanation
"dog"
is repeated.
Example 2
Input
- s =
catdog
Output
- answer =
False
Leave a comment