Question d’entretien chez SUNRISE FUTURES

How do you delete a node in BST?

Réponse à la question d'entretien

Utilisateur anonyme

23 sept. 2017

First identify some basic cases (leaf node, just has one side of tree) Then find the minimum value from the right subtree and replace the value of target node with value of that node. And delete the minimum value node by calling deleting on the right subtree