Skip to content

Commit 6a330c7

Browse files
Update edit_distance.py
1 parent 1990be8 commit 6a330c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

strings/edit_distance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ def edit_distance(source: str, target: str) -> int:
1616
1
1717
>>> edit_distance("NUM3", "HUM2")
1818
2
19-
>>> edit_distance("cap","CAP")
19+
>>> edit_distance("cap", "CAP")
2020
3
21-
>>> edit_distance("Cat","")
21+
>>> edit_distance("Cat", "")
2222
3
23-
>>> edit_distance("cat","cat")
23+
>>> edit_distance("cat", "cat")
2424
0
25-
>>> edit_distance("","123456789")
25+
>>> edit_distance("", "123456789")
2626
9
27-
>>> edit_distance("Be@uty","Beautyyyy!")
27+
>>> edit_distance("Be@uty", "Beautyyyy!")
2828
5
29-
>>> edit_distance("lstring","lsstring")
29+
>>> edit_distance("lstring", "lsstring")
3030
1
3131
"""
3232
if len(source) == 0:

0 commit comments

Comments
 (0)