a. A regular binary tree is a binary tree where every internal node has exactly two subtrees. Write a recursive function
Posted: Sun May 15, 2022 10:07 am
a. A regular binary tree is a binary tree where every internal
node has exactly two subtrees. Write a recursive function that
computes the external path length of a regular binary tree,
assuming that you have at your disposal a Boolean function that
tells you whether a tree is a leaf and an integer function that
returns the number of leaves of a binary tree.
int EPL (treeType t) {… }
A B С חד D F G H
node has exactly two subtrees. Write a recursive function that
computes the external path length of a regular binary tree,
assuming that you have at your disposal a Boolean function that
tells you whether a tree is a leaf and an integer function that
returns the number of leaves of a binary tree.
int EPL (treeType t) {… }
A B С חד D F G H