Fetching data...
This may take a moment
Back
3796. Longest Common Prefix After at Most One Removal
Medium
Two Pointers
String
Solve on LeetCode
View Solutions
Description
Hints
Hint 1
Maintain pointers to the beginning of both strings and remove the first position where they differ in <code>s</code> (if any).
Similar Questions
Longest Common Prefix
Easy
Statistics
Acceptance
68.3%
Submissions
1,572
Accepted
1,073