Problem 93. Calculate the Levenshtein distance between two strings
Solution Stats
Problem Comments
-
3 Comments
jj L
on 9 Aug 2018
Good question
Stephan Allgeier
on 10 Jan 2020
I really like this problem. So far, this is the one I had to think about most. Mostly because the straight-forward recursive implementation is simply not feasible for longer inputs.
Roie Knaanie
on 15 Oct 2022
This question is a good example of using a bottom-up dynamic programming algorithm.
Solution Comments
Show commentsProblem Recent Solvers1151
Suggested Problems
-
Select every other element of a vector
28892 Solvers
-
5067 Solvers
-
Find the two most distant points
2494 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
357 Solvers
-
7990 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!