@Terence : Consider your algo for the tree
1
/ \
2 3
/ \ / \
4 5 6 7
/ /
8 9
According to your algo , first we print 8 4 2 1 ( while(! is_empty(vstack))
) . But 9 should come before 1.
i.e 8 4 2 9 1 5 6 3 7
am I correct???
--
Regards
Jitendra Kushwaha
MNNIT, Allahabad
--
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.