Skip to content

Commit c482b18

Browse files
committed
fix: precommit check
1 parent 1746258 commit c482b18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

strings/damerau_levenshtein_distance.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def damerau_levenshtein_distance(first_string: str, second_string: str) -> int:
3434
"""
3535

3636
# Create a dynamic programming matrix to store the distances
37-
dp_matrix = [
38-
[None] * (len(second_string) + 1) for _ in range(len(first_string) + 1)
39-
]
37+
dp_matrix = [[0] * (len(second_string) + 1) for _ in range(len(first_string) + 1)]
4038

4139
# Initialize the matrix
4240
for i in range(len(first_string) + 1):

0 commit comments

Comments
 (0)