Skip to content

#72 - Edit Distance

MediumDP - Multidimensional
Open on LeetCode

Given two strings word1 and word2, return the minimum number of operations (insert, delete, replace a character) required to convert word1 into word2.

InputOutput
word1 = "horse", word2 = "ros"3
word1 = "intention", word2 = "execution"5

Released under the MIT License.