You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Strings/one_edit.go
+2
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,8 @@
35
35
and minimum of two integers, respectively.
36
36
37
37
The algorithm efficiently checks for the possibility of one edit by comparing the characters at corresponding indices and handling cases where the lengths of the strings are different.
38
+
39
+
O(n) time | O(1) space - where n is the length of the shorter string
0 commit comments