class Solution { // idea: Find the length of LCS and remove the length from original string public int minDeletions(String s) { String s2 = new StringBuilder(s).reverse().toString(); int n = s.length(); int m = s2.length(); int[][] t = new int[n+1][m+1]; for(int i=0; i lcs // aba // aba