One edit distance

0
Remix

Return whether two strings are exactly one edit apart, where an edit inserts, deletes or replaces one character. Solve it in one pass and clarify the edge cases (equal strings, empty strings) with the interviewer before coding.

MetaTechnical phone screenLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.