Symantec

www.symantec.com

Interview Question

Software Engineer Interview Culver City, CA

print out nodes of a binary tree by levels. i.e., all nodes

  on level 1, then all nodes on level 1, then all nodes on level 2, etc.
Tags:
Answer

Interview Answer

1 Answer

0

use a queue to traverse the tree using breath first search

Interview Candidate on Jul 10, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.