root.left) helper(root.right) res = list() helper(root) return res # Recursive root.val) helper(root.right) res = list() helper(root) return res # Recursive root.right) res.append(root.val) res = list() helper(root) return res # Recursive