One Edit Distance
CodingOnsiteMachine Learning EngineerReported Mar, 2026
Examples
Example 1:
Input: s = "ab"
t = "acb"
Output: true
Explanation:
Example 2:
Input: s = "cab"
t = "ad"
Output: false
Explanation:
Example 3:
Input: s = "1203"
t = "1213"
Output: true
Explanation:
Example 4:
Input: s = "a"
t = "a"
Output: false
Explanation: