Pregunta de entrevista de Amazon

Write a function to serialize a binary tree.

Respuesta de la entrevista

Anónimo

13 de nov de 2011

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