Tree Sum
[email protected] // 1.0 // type-checkable
Write a function called tree_sum
that takes a binarytree.BinaryTree
of int
s and returns the sum
of all the value
properties of the nodes in the tree.
You can access child nodes via the left
and right
properties.