Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Levenshtein Distance #414

Open
yurifilgueira opened this issue May 30, 2024 · 0 comments · May be fixed by #415
Open

Add Levenshtein Distance #414

yurifilgueira opened this issue May 30, 2024 · 0 comments · May be fixed by #415

Comments

@yurifilgueira
Copy link

The Levenshtein distance algorithm calculates the minimum number of edits (insertions, deletions, or substitutions) needed to transform one string into another. It utilizes a matrix to store the distances between all prefixes of the two strings, and iteratively fills this matrix using dynamic programming. The final value in the matrix represents the Levenshtein distance between the two original strings.

  • Implement the algorithm: Write a function levenshtein_distance(string1, string2) that accurately calculates the Levenshtein distance between two input strings.
@yurifilgueira yurifilgueira linked a pull request May 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant