package leetcode;

/**
 * https://leetcode.com/problems/delete-operation-for-two-strings/
 */
public class Problem583 {
    public int minDistance(String word1, String word2) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem583 prob = new Problem583();
        System.out.println(prob.minDistance("sea", "eat")); // 2
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/delete-operation-for-two-strings/
 */
public class Problem583 {
    public int minDistance(String word1, String word2) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem583 prob = new Problem583();
        System.out.println(prob.minDistance("sea", "eat")); // 2
        System.out.println(prob.minDistance("abdm", "yxabcd")); // 4
        System.out.println(prob.minDistance("abdm", "cyxabcd")); // 5
    }
}

Update problem 583