计算和为target的路径,这里选择遍历树,每次计算后将target减去节点的值,如果到达底层节点且target为0,则将路径记录 public class Solution { private ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); private ArrayList<Integer> list = new ArrayList<>(); public ArrayList<Arr...