Wyo Data Structures - Ch. 6 Notes
Objective #1: Be able to write recursive functions that are used with binary trees.
int treeSum(node * tree)
// returns the number of internal nodes in the Btree that has tree as its rootbool isLeaf(node * myNode)
// non-recursive function that returns true if myNode is a leaf, false otherwiseint treeDepth(node * tree)
// returns the depth of the tree which has tree as its rootint internalPathLength(node * tree)
// returns the internal path length of the tree which has tree as its rootint externalPathLength(node * tree)
// returns the external path length of the tree which has tree as its root