Skip to content

Commit 6bfcad7

Browse files
committed
add sample io
1 parent a01e3cd commit 6bfcad7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Strings/one_edit.go

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
Add:: One character is added at any index in one string.
99
Remove: One character is removed at any index in one string.
1010
11+
Sample Input: StringOne: alaska StringTwo: aloska
12+
Output: True
13+
14+
1115
Explanation:
1216
The code snippet is implementing the "One Edit Away" algorithm, which determines whether two given
1317
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

Comments
 (0)