Search
⌘K

Leetcode 72. Edit Distance

Compute the minimum number of single-character insertions, deletions, or replacements needed to transform word1 into word2 (the classic Levenshtein edit distance), typically solved with dynamic programming over the two string lengths (both ≤ 500).

Asked at:

LinkedIn

LinkedIn


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid January, 2026

LinkedIn

LinkedIn

Mid-level

Early August, 2025

LinkedIn

LinkedIn

Mid-level

Late February, 2025

LinkedIn

LinkedIn

Senior

Comments

Your account is free and you can post anonymously if you choose.