Symantec

  www.symantec.com
Work in HR? Unlock Free Profile

Symantec Software Engineer Interview Question

I interviewed in Culver City, CA and was asked:
"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: binary tree, traversal, breath first search
Add Tags [?]
Answer

Part of a Software Engineer Interview Review - one of 324 Symantec Interview Reviews

Answers & Comments

0
of 0
votes

use a queue to traverse the tree using breath first search

- Interview Candidate on Jul 10, 2011

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

Tags are like keywords that help categorize interview questions that have something in common.