Intern Software Interview Questions

17,744 intern software interview questions shared by candidates

Write an algorithm (Python) to traverse a binary tree, but the traversal was in a zig-zag order. So you go down 1 layer, move across the layer horizontally, and down on the other side, printing values along the way. Not how a binary tree is normally traversed.
avatar

Software Engineering Intern

Interviewed at Glean (CA)

3.8
Apr 6, 2024

Write an algorithm (Python) to traverse a binary tree, but the traversal was in a zig-zag order. So you go down 1 layer, move across the layer horizontally, and down on the other side, printing values along the way. Not how a binary tree is normally traversed.

Viewing 601 - 610 interview questions

Glassdoor has 17,744 interview questions and reports from Intern software interviews. Prepare for your interview. Get hired. Love your job.