Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question

Interview(Student Candidate) Seattle, WA

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

  describe the approach, then write the code.
technical, algorithm, tree

Interview Answer

3 Answers


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


Anonymous on Dec 20, 2012

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, Sign In or Sign Up.