Problem of the Day
A new programming or logic puzzle every Mon-Fri

Level Order Traversal

Today's problem is a bit of a tough one depending on your programming background. The goal is to take in a binary tree and print out the nodes in level order (your choice on left to right or right to left). For instance the answer for

would be F, B, G, A, D, I, C, E, H (using left to right ordering).



  • There are currently no comments. You can be first!

Content curated by @MaxBurstein