Tap here to switch tabs
Problem
Submissions

Problem: Longest Repeating Substring

med
30 min
Try to solve the Longest Repeating Substring problem.

Statement

Given a string s, return the length of the longest substring that appears at least 22 times in s. If no repeating substring exists, return 00.

Constraints:

  • 1≤1 \leq s.length ≤2000\leq 2000

  • s consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Longest Repeating Substring

med
30 min
Try to solve the Longest Repeating Substring problem.

Statement

Given a string s, return the length of the longest substring that appears at least 22 times in s. If no repeating substring exists, return 00.

Constraints:

  • 1≤1 \leq s.length ≤2000\leq 2000

  • s consists of lowercase English letters.