Skip to content

Commit 0d1cfca

Browse files
committed
[BugFix] Removed unused variable.
1 parent 14ba7ff commit 0d1cfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/string/edit_distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def calculate_edit_distance(str1, str2):
6464

6565
# traceback
6666
current_pos = (len(str2)-1, len(str1)-1)
67-
D,I,M,S = 'Delete','Insert','M','Substitute'
67+
D,I,S = 'Delete','Insert','Substitute'
6868
trace_stack = []
6969
while parent[current_pos[0]][current_pos[1]] != -1:
7070
parent_val = parent[current_pos[0]][current_pos[1]]

0 commit comments

Comments
 (0)