0459. Repeated Substring Pattern
Description
**Input:** s = "abab"
**Output:** true
**Explanation:** It is the substring "ab" twice.**Input:** s = "aba"
**Output:** false**Input:** s = "abcabcabcabc"
**Output:** true
**Explanation:** It is the substring "abc" four times or the substring "abcabc" twice.ac
Last updated