Software Engineers Interview Questions

420,052 software engineers interview questions shared by candidates

You are given a random binary tree 5 / \ 4 9 / \ / \ 3 5 6 8 Write code to print it out in order level ie 5 4 9 3 5 6 8 The tree need not be balanced. Write all the datastructures for the tree and make sure that you print newlines after each level. Also write test cases to test your code.
avatar

Software Engineer

Interviewed at Google

4.4
Jun 9, 2011

You are given a random binary tree 5 / \ 4 9 / \ / \ 3 5 6 8 Write code to print it out in order level ie 5 4 9 3 5 6 8 The tree need not be balanced. Write all the datastructures for the tree and make sure that you print newlines after each level. Also write test cases to test your code.

Viewing 1231 - 1240 interview questions

Glassdoor has 420,052 interview questions and reports from Software engineers interviews. Prepare for your interview. Get hired. Love your job.