Print a binary tree using breadth first search, i.e. print all numbers level by level on a tree. Add a line break between each level.
Anonymous
You need two counters to keep track of where you are and you need to use a queue to perform BFS
Check out your Company Bowl for anonymous work chats.