cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Tree traversal help
Tree traversal help
Nov 28, 2011 at 5:02pm UTC
lewang3
(1)
I want an algorithm that lists out the nodes of a binary tree in level-order. Listing the root, nodes at depth 1,nodes at depth 2, and so on using array or linked-list .How can I do this in linear time.thanks in advance
Topic archived. No new replies allowed.