Binary Search Tree

Drawings

Draw a BST

Given the following data 3,1,4,6,9,2,5,7. If you were to insert this into an empty Binary Search Tree, how would the tree look like? (Draw the tree, no coding needed here).

Link to drawing

Remove the root

Show how the tree would look like if you deleted the root. (Draw the tree, no coding needed here).

Link to drawing