Develop code for pre-order and in-order traversals, perhaps using them in the context of printing out a succession of node values.
Note that running your code on royalty will probably fail due to a shortage of stack space! You need to incorporate a depth limit, which is more tricky .....
If all else fails, reconsult exercise 3 of Practical 1!
|© Paul Goldfinch 1996||D.C.G Addendum||Return to 52 349 Menu|