public ArrayList<ArrayList<Integer>> pathSum (TreeNode root, int sum) { // 前序遍历方法 preOrder(root, sum, 0); return res; } public void preOrder(TreeNode root, int sum, int cur){ if(root == null) return; temp.add(root.val); cur +=roo...