package leetcode;

/**
 * https://leetcode.com/problems/delete-leaves-with-a-given-value/
 */
public class Problem1325 {
    public static class TreeNode {
        int val;
        TreeNode left;
        TreeNode right;

        TreeNode(int x) {
            val = x;
        }
    }

    public TreeNode removeLeafNodes(TreeNode root, int target) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem1325 prob = new Problem1325();
    }
}

@@ -477,16 +477,322 @@
 m1325();
+%0A%0A        TreeNode root = new TreeNode(1);%0A        root.left = new TreeNode(2);%0A        root.left.left = new TreeNode(2);%0A        root.right = new TreeNode(3);%0A        root.right.left = new TreeNode(2);%0A        root.right.right = new TreeNode(4);%0A%0A        System.out.println(prob.removeLeafNodes(root, 2));
 %0A    %7D%0A%7D

Update problem 1325