这里运用了最小距离的算法 经典的动态规划相同字符 左上角值加1 不相同字符 邻居三个取最小注意点也要把"" 空字符串考虑进去三个求最小可以改下为 Math.min(n, Math.min(m,l)) class Solution { public int min(int n , int m ,int l) { int temp = 0; if(m<=n&&m<=l) temp = m; else if(n<=m&&n<=l) temp = n; else if(l<=n&&l<=m) te...