Skip to content

Commit bd4324f

Browse files
committed
Merge branch 'test/min-cost-string-conversion' of https://github.com/Akhila21-6/Python into test/min-cost-string-conversion
:wq# the commit.
2 parents 68d08f8 + 4f6c516 commit bd4324f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/min_cost_string_conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
into another (Levenshtein distance).
44
The allowed operations are insertion, deletion, or substitution of a single character.
55
"""
6+
67
import doctest
78

89

@@ -61,8 +62,7 @@ def compute_transform_tables(
6162
[0 for _ in range(len_destination_seq + 1)] for _ in range(len_source_seq + 1)
6263
]
6364
ops = [
64-
["0" for _ in range(len_destination_seq + 1)]
65-
for _ in range(len_source_seq + 1)
65+
["0" for _ in range(len_destination_seq + 1)] for _ in range(len_source_seq + 1)
6666
]
6767

6868
for i in range(1, len_source_seq + 1):

0 commit comments

Comments
 (0)