We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01e3cd commit 6bfcad7Copy full SHA for 6bfcad7
Strings/one_edit.go
@@ -8,6 +8,10 @@
8
Add:: One character is added at any index in one string.
9
Remove: One character is removed at any index in one string.
10
11
+ Sample Input: StringOne: alaska StringTwo: aloska
12
+ Output: True
13
+
14
15
Explanation:
16
The code snippet is implementing the "One Edit Away" algorithm, which determines whether two given
17
strings are one edit away from each other. An edit is defined as either inserting a character, removing a character, or replacing a character.
0 commit comments