Leetcode之动态规划(DP)专题-72. 编辑距离(Edit Distance)

Leetcode之动态规划(DP)专题-72. 编辑距离(Edit Distance)html   给定两个单词 word1 和 word2,计算出将 word1 转换成 word2 所使用的最少操做数 。post 你能够对一个单词进行以下三种操做:spa 插入一个字符 删除一个字符 替换一个字符 示例 1:code 输入: word1 = "horse", word2 = "ros" 输出: 3
相关文章
相关标签/搜索