Okay, I need to do an InOrder traversal on a Binary Search tree.
The keys are inserted in the following order:
5, 2, 8, 4, 1, 6, 0, 7, 9, 3
This is how the tree should look (I think):
Right or wrong?
The keys are inserted in the following order:
5, 2, 8, 4, 1, 6, 0, 7, 9, 3
This is how the tree should look (I think):
code:<HR>Code:5 / \ 2 8 / \ / \ 1 4 6 9 / / \ 0 3 7
Right or wrong?