CS 221

Homework Assignment
Due:_____________



Binary Tree
Level and Subtree Hieghts

Write a program that will input a list of integers (or characters) and build a binary tree using the values in the order they are received. Print out the following:

  1. A list of the values from the tree when it is traversed using in-order traversing.
  2. A list of the values from the tree when it is traversed using pre-order traversing.
  3. A list of all the values in the tree with the following information: