Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Dec 20, 2009
It is easy to insert data into a binary tree. If the value is greater it goes on the greater side or else on the lesser side. Simple! But this produces an unbalanced tree in most cases. If you insert integers in this order; 1, 2, 3, 4, 5, 6, 7, 8, 9 you'll end up with a linked list instead of a binary tree, which is not what you want.