Algorithms and Data Structures · Middle · Question 46 of 75

What does the Levenshtein (edit) distance measure?

Explanation

It's computed with an O(n × m) DP table and powers spell checkers and "did you mean...?" suggestions. Counting differing positions in equal-length strings is the Hamming distance.

Further reading

Problem with a question

Algorithms and Data Structures · Middle · question 46

Test yourself

Take the Algorithms and Data Structures · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz