3460. Longest Common Prefix After at Most One Removal
You are given two strings
sandt.Return the length of the longest common prefix between
sandtafter removing at most one character froms.Note:
scan be left without any removal.
1 | class Solution { |