Find expert answers and community insights on IDNLearn.com. Get step-by-step guidance for all your technical questions from our knowledgeable community members.

write a routine to list out the nodes of a binary tree in level-order. list the root, then nodes at depth 1, followed by nodes at depth 2, and so on. you must do this in linear time. prove your time bound.