W
Will Oram
Hi,
My assignment is to create a non-binary tree of arbitrary form, and then
print out the data in an orderly fashion. The handout contains a tree to
be inputted:
2
/ | \
3 7 5
/ \ |
1 8 6
If that 7 weren't there, it would be a binary tree and I could deal with
it easily. I've searched through texts and notes and the Internet but
couldn't find any documentation on the subject.
What's the best way to deal with this situation?
Thanks.
My assignment is to create a non-binary tree of arbitrary form, and then
print out the data in an orderly fashion. The handout contains a tree to
be inputted:
2
/ | \
3 7 5
/ \ |
1 8 6
If that 7 weren't there, it would be a binary tree and I could deal with
it easily. I've searched through texts and notes and the Internet but
couldn't find any documentation on the subject.
What's the best way to deal with this situation?
Thanks.