Available question text
Given a string, return the length of the longest substring that appears at least twice in the string (overlaps allowed). This requires efficiently detecting repeated substrings — typical approaches use suffix arrays/automata or binary search with rolling hash to test candidate lengths.
Related questions
Continue with questions that share topics or the same question type.
- Longest Substring of One Repeating Character
Coding
- Longest Substring with At Least K Repeating Characters
Coding
- Longest Substring Without Repeating Characters
Coding · Hash Table · Sliding Window · String
- Find Longest Awesome Substring
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1062. Longest Repeating Substring
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source