the first scenario is the easiest to handle if the node about to be removed has no childrenwe simply detach it from its parentbecause node has no childrenwe will simply dissociate it from its parentnode on the other handwhen the node we want to remove has one childthe parent of that node is made to point to the child of that particular nodein order to remove node which has as its only childnode we point the left pointer of node to node the relationship between the parent node and child has to be preserved that is why we need to take note of how the child node is connected to its parent (which is the node about to be deletedthe child node of the deleted node is stored then we connect the parent of the deleted node to that child node