Pergunta de entrevista da empresa Amazon

Write a function to serialize a binary tree.

Resposta da entrevista

Sigiloso

13 de nov. de 2011

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