Interview Question

Software Development Engineer Interview(Student Candidate) Seattle, WA

Serialize (flatten) and de-serialize a binary tree. First

  describe the approach, then write the code.
Tags:
technical, algorithm, tree
Answer

Interview Answer

3 Answers

0

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.

Interview Candidate on Jun 25, 2012
0

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

Anonymous on Dec 20, 2012
0

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

Sandesh on Dec 20, 2012

Add Answers or Comments

To comment on this Question, Sign In with Facebook or Sign Up