dp 设f[i][j]为[0,i] [0,j]中能够成公共子序列的最大值 f[i][j] = max(f[i - 1][j],f[i][j - 1],f[i - 1][j - 1] + (s[i] == s[j])) import java.util.*; public class Solution { public String LCS (String s1, String s2) { int n = s1.length(); int m = s2.length(); int f[][] = new int[n + 10][m +...