@@ -0,0 +1,786 @@
+package dev.codefoundry.string;%0A%0Apublic class DeleteCharsToEqualizeStrings %7B%0A%09public int solve(String a, String b) %7B%0A        int%5B%5D%5B%5D dp = new int%5Ba.length() + 1%5D%5Bb.length() + 1%5D;%0A%0A        for (int i = 0; i %3C= a.length(); i++) %7B%0A            for (int j = 0; j %3C= b.length(); j++) %7B%0A                if (i == 0 %7C%7C j == 0) %7B%0A                    dp%5Bi%5D%5Bj%5D = i + j;%0A                %7D else if (a.charAt(i - 1) == b.charAt(j - 1)) %7B%0A                    dp%5Bi%5D%5Bj%5D = dp%5Bi - 1%5D%5Bj - 1%5D;%0A                %7D else %7B%0A                    dp%5Bi%5D%5Bj%5D = 1 + Math.min(dp%5Bi%5D%5Bj - 1%5D, dp%5Bi - 1%5D%5Bj%5D);%0A                %7D%0A            %7D%0A        %7D%0A%0A        return dp%5Ba.length()%5D%5Bb.length()%5D;%0A    %7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09System.out.println(new DeleteCharsToEqualizeStrings().solve(%22a%22, %22bb%22));%0A%09%7D%0A%7D%0A

Delete Chars to equalize strings