Skip to content

Latest commit

 

History

History

print_level_order

Print level order

Output a tree in level order with a line per level.

Challenge

Algorithm input consists of a k tree. Output is a string with a line of space separated items for each level. No standard library functions are to be used.

Solution

Whiteboard Images