int[][] dp = new int[word1.length()+1][word2.length()+1]; // if(i==word1.length() && j==word2.length()) return 0; // if(word1.length()==i) return word2.length()-j ...