Because the original poster specified that space efficiency is
important, I would go with pre-order. There are typically as many
nulls in a tree as there are nodes, so you could double the size of
the file by including nulls.
Don

On Aug 30, 8:15 am, Dumanshu <[email protected]> wrote:
> Level Order traversal if you are ok with the Nulls being stored.
> Otherwise its pre order traversal.


-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to