参考链接:https://leetcode-cn.com/problems/edit-distance/solution/bian-ji-ju-chi-by-leetcode-solution/我们可以对任意一个单词进行三种操作:在单词 A 中插入一个字符;在单词 A 中插入一个字符;修改单词 A
展开全文
对python真的不友好
# min edit cost
# @param str1 string字符串 the string
# @param str2 string字符串 the string
# @param ic int整型 insert cost
# @param dc int整型 del
展开全文