Available question text
Given m integer paths over cities 0..n-1, find the maximum length L such that every path contains some contiguous subarray of length L; this is the longest common contiguous subarray problem, typically solved efficiently with binary search plus rolling hashes or suffix structures to handle total input size up to 1e5.
Related questions
Continue with questions that share topics or the same question type.
- Find the Length of the Longest Common Prefix
Coding
- Longest Common Anagram Substring in Two Strings
Coding
- Longest Common Prefix
Coding · Array · String · Trie
- Longest Common Prefix After at Most One Removal
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 1923. Longest Common Subpath
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source