Question d’entretien chez Amazon

Write a function to serialize a binary tree.

Réponse à la question d'entretien

Utilisateur anonyme

13 nov. 2011

I just stored the tree in an array with the index corresponding to its position in the tree.