Exercise using binary trees

This is the fifth programming milestone.

  1. Draw out on paper how the binary tree evolves for the input sequence:
    5 7 3 9 2

  2. Modify the statistical programme which you have built and which currently gives the mean, standard deviation etc. of a sequence, so that it can optionally print out the sequence in ascending or descending order.

Answers to these questions.


Back to the note on binary trees.