Question: A BST(binary search tree) is created (it is initially empty) where the key associated with the data in each node is an integer. Elements are
A BST(binary search tree) is created (it is initially empty) where the key associated with the data in each node is an integer.
Elements are added to the BST with these keys in this order: 5, 4, 8, 7, 6, 9, 3, 2, 1.
(a)Draw the resulting BST.
(b)What is the height of the tree?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
