Concept

How can we remove the Mal node while preserving the BST property?

Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk / Chapter 1

"Mal ” node from this tree, how would we do that? We can put the left-most node of Mal ’s right subtree (that would be River ) in Mal ’s place, and then make Simon (and everything under him) become Wash ’s left child. The result would look like this: River Jayne Inara Kaylee Zoe Simon Wash Take a moment and convince your- self that this Mal -less tree does in fact satisfy the BST property."

Related Ideas

How can we remove the Mal node while preserving the BST property? | Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk | Bifalgorithm | Bifalgorithm