Question: Consider the following BST: 7 / 4 10 / / 2 6 8 (a) Draw the structure of the BST for each call
Consider the following BST:
7
/ \
4 10
/ \ /
2 6 8
(a) Draw the structure of the BST for each call involved in adding the value "5" to the tree. Indicate which node is being pointed at during each call.
(b) Draw the structure of the BST for each call involved in deleting the value "4" from the tree. Indicate which node is being point at during each call. Use the initial tree.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
