If we have to delete a node from a binary tree, how should we handle the children of the node being deleted. E.g. in this tree:
100
/
10
/ \
5 20
where 100
is the root node, 10
is left child of 100
, 5
is left child of 10
and 20
is right child of 10
. So after deleting 10
, what will happen to 5
and 20
?