Arrange the steps of the algorithm for calculating the Damerau-Levenshtein function in the correct order.
Damerau–Levenshtein distance
Sort the algorithm
Report a typo
Put the items in the correct order
Filling the cells with numbers using the formula.
Adding an extra row and column that will hold characters' indices to count.
Defining a distance matrix, where the number of rows and columns is equal to the length of the provided strings.
Getting a score in the lower-right cell.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.