我看大家都写的是迭代版本的,那我来写个递归版本的吧,思路一致,代码如下:class Solution { public int minEditCost (String str1, String str2, int ic, int dc, int rc) { // write code here int[][] dp = new int[str1.length() + 1][str2.length() + 1]; for (int i = 0; i < dp.length; i++) { for (int j = 0; ...