Software Developer Engineer Interview Questions

466,919 software developer engineer 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 1201 - 1210 interview questions

Glassdoor has 466,919 interview questions and reports from Software developer engineer interviews. Prepare for your interview. Get hired. Love your job.