161 One Edit Distance
Given two strings S and T, determine if they are both one edit distance apart.
感觉这题边界控制有点难度。这个是得刚好等于1,一开始以为<=1。一直调不过。T:O(n),S:O(1)
Last updated
Given two strings S and T, determine if they are both one edit distance apart.
感觉这题边界控制有点难度。这个是得刚好等于1,一开始以为<=1。一直调不过。T:O(n),S:O(1)
Last updated