3796. Longest Common Prefix After at Most One Removal

Medium
Two Pointers
String

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

Statistics

Acceptance
68.3%
Submissions
1,572
Accepted
1,073