logo CodeStepByStep logo

houseOfTudor

Language/Type: C++ binary trees

Consider the following diagram of the family tree of the House of Tudor:

         ______________Henry VII_____________________
        /                  |              \          \
       /                   |               \          \
Margaret             ___Henry VIII___       Arthur     Mary
   |                /       |        \                   |
   |               /        |         \                  |
 James         Mary    Elizabeth I    Edward VI       Frances
   |                                                 /       \
   |                                                /         \
Mary, Queen of Scots                         Jane Grey       Catherine Grey
   |
   |
James I
What name is the root node?
What names are the leaf nodes? Write them left-to-right separated by commas.
What is the height of the tree?

You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.