Domanda di colloquio di Amazon

Serialize (flatten) and de-serialize a binary tree. First describe the approach, then write the code.

Risposte di colloquio

Anonimo

20 dic 2012

http://www.leetcode.com/2010/09/serializationdeserialization-of-binary.html

Anonimo

20 dic 2012

For BST http://www.leetcode.com/2010/09/saving-binary-search-tree-to-file.html

Anonimo

25 giu 2012

I know that some people didn't get to the de-serialization code...so it might be a bit long. The question itself is pretty basic so the objective should be to provide a clear explanation and code. Interviewer seemed happy that I didn't jump straight to the solution, but instead inquired about any system restrictions, requirements etc.