[prev] 35 [next]

Deletion from BSTs (cont)

Case 4: item to be deleted has two subtrees

[Diagram:Pic/del0-m.png]

Version 1: right child becomes new root, attach left subtree to min element of right subtree

[Diagram:Pic/del1-m.png]