leetle

Daily challenge for 2025-09-12

255. Repeated Substring Pattern

Write a function solve that returns true if string s can be constructed by repeating a substring of itself one or more times.

Example:
Input: s = 'abab'
Output: true

Run this challenge interactively in Python or JavaScript when the app loads.