BST Delete
A leaf just goes, one child is spliced past, two children need a successor.
Binary Search Tree: Delete a node with two children (30)
30 is smaller than 50: go left.
Cost
- Best
- O(1)
- Average
- O(log n)
- Worst
- O(n)
- Space
- O(1)
Before this
Leads to
Topics that need this one first.
Taught by the same lesson
Binary Search Tree covers these too, in the same run.