Available question text
Given an array of strings, you may remove at most one string — choose the removal (or none) that yields the longest common prefix among the remaining strings and return that prefix (or its length). The core challenge is identifying the possible outlier to drop and efficiently computing the resulting common prefix across all other strings.
Related questions
Continue with questions that share topics or the same question type.
- Longest Common Prefix of K Strings After Removal
Coding
- Longest Common Prefix Between Adjacent Strings After Removals
Coding
- Find the Length of the Longest Common Prefix
Coding
- Longest Common Prefix
Coding · Array · String · Trie
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 3460. Longest Common Prefix After at Most One Removal
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source