Skip to content

Commit

Permalink
Merge main with develop for analysis checking
Browse files Browse the repository at this point in the history
Changing comment for Sonar analysis checking
  • Loading branch information
dohuyduc2002 authored Jun 15, 2024
2 parents be5c87f + b341a99 commit 08d6280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Week_2/levenshtein.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def leveshtein(word1 : str, word2: str) -> float:
#Fill the matrix
for i in range(1,len_word1 + 1):
for j in range(1,len_word2 + 1):
#iterate through every element of matrix, skipping the 1st row and cal which has been filled
#iterate through every element of matrix, skipping the 1st row and cal which has been filled
if word1[i - 1] == word2[j - 1]: #
matrix[i][j] = matrix[i-1][j-1]
#the element of matrix gain the previous value from its main diagonal
Expand Down

0 comments on commit 08d6280

Please sign in to comment.