Skip to content

Commit e3a45eb

Browse files
committed
fix: issue TheAlgorithms#9844
1 parent f933a55 commit e3a45eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: backtracking/match_word_pattern.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def backtrack(pattern_index, str_index):
3838
del pattern_map[char]
3939
del str_map[substr]
4040
return False
41-
pattern_map = {}
42-
str_map = {}
41+
pattern_map: dict[str,str] = {}
42+
str_map: dict[str,str] = {}
4343
return backtrack(0, 0)
4444

4545
if __name__ == "__main__":

0 commit comments

Comments
 (0)