Tap here to switch tabs
Problem
Submissions

Problem: Repeated Substring Pattern

med
30 min
Try to solve the Repeated Substring Pattern problem.

Statement

Given a string s, return true if s can be formed by repeating one of its proper substrings multiple times. Otherwise, return false.

Note: A proper substring is a non-empty substring that is not equal to s itself.

Constraints:

  • 1≤1 \leq s.length ≤104\leq 10^4

  • s consists only of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Repeated Substring Pattern

med
30 min
Try to solve the Repeated Substring Pattern problem.

Statement

Given a string s, return true if s can be formed by repeating one of its proper substrings multiple times. Otherwise, return false.

Note: A proper substring is a non-empty substring that is not equal to s itself.

Constraints:

  • 1≤1 \leq s.length ≤104\leq 10^4

  • s consists only of lowercase English letters.