Open AustinScola opened 3 years ago
The Levenshtein distance is returning zero if either string is empty, but it should be returning the length of the other string. See the wikipedia page.
Example:
assert levenshtein_distance('foo', '') == 3 assert levenshtein_distance('', 'bar') == 3
The Levenshtein distance is returning zero if either string is empty, but it should be returning the length of the other string. See the wikipedia page.
Example: