Intern Interview Questions

248,705 intern interview questions shared by candidates

Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Aug 13, 2013

Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.

Viewing 181 - 190 interview questions

Glassdoor has 248,705 interview questions and reports from Intern interviews. Prepare for your interview. Get hired. Love your job.