Available question text
For each index i, remove words[i] and return the length of the longest common prefix among all adjacent pairs in the remaining array (0 if no adjacent pairs share a prefix). The core challenge is to precompute LCPs of original adjacent pairs and answer n queries efficiently by taking the maximum over pairs not touching the removed index (requiring range-max support to meet the 1e5-size constraints).
Related questions
Continue with questions that share topics or the same question type.
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 3598. Longest Common Prefix Between Adjacent Strings After Removals
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source