It seems that the delete
method presented in this book doesn’t handle one case. This function does nothing if we try to remove root node with a single child node. It would simply return this only child node and that’s all.
It seems that the delete
method presented in this book doesn’t handle one case. This function does nothing if we try to remove root node with a single child node. It would simply return this only child node and that’s all.