Ezvor

3460. Longest Common Prefix After at Most One Removal

MediumTwo Pointers Preparing judge… LeetCode
Two PointersString

Hints

Hint 1
Maintain pointers to the beginning of both strings and remove the first position where they differ in s (if any).