One Edit Distance
Input: s = "ab", t = "acb"
Output: true
Explanation: We can insert 'c' into s to get t.Input: s = "cab", t = "ad"
Output: false
Explanation: We cannot get t from s by only one step.Input: s = "1203", t = "1213"
Output: true
Explanation: We can replace '0' with '1' to get t.Solution
Last updated