Question d’entretien chez Meta

serialize and serialize a BST

Réponse à la question d'entretien

Utilisateur anonyme

1 juil. 2015

Must do a pre-order to make sure you have the root node first (This will serialize) and then use the BST property( all node if left are smaller that root node AND all nodes on right are greater than root) to solve the problem recursively.