Remove (Tracing)
Consider this BST
![](/img/16/worksheet.png)
Exercise Starting with the above binary search tree, draw it after deleting each of these in turn: $5$, $2$, $13$.
Solution
remove(5)
![](/img/16/worksheet01.png)
remove(2)
![](/img/16/worksheet02.png)
remove(13)
![](/img/16/worksheet03.png)
Consider this BST
Exercise Starting with the above binary search tree, draw it after deleting each of these in turn: $5$, $2$, $13$.
remove(5)
remove(2)
remove(13)