Frage im Vorstellungsgespräch bei Amazon

Write a function to serialize a binary tree.

Antwort im Vorstellungsgespräch

Anonym

13. Nov. 2011

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