// User function Template for Java class Solution { /** * Find the LCS of both strings * Once LCS length is found, we can remove the length of LCS from both the strings * and then we can sum up the remaining length of both strings */ public int minOperations(String s1, String s2) { int n = s1.length(); int m = s2.length(); // step-1 create a matrix of LCS int[][] t = new int[n+1][m+1]; // step-2 initialise the matrix for(int i=0; i