@atul zig-zag mean spiral traversal of tree e.g. alternate the level while 
traversing , if previous traversal is left to right , then next level will 
be right to left .

@aman .quest has little ambiguity its says successor but ebvery nodes can 
have we can ore-order , inorder ,postorder successor isn't it  ?? but i am 
assuming u r interesting in pre-order succesor so then 1st find the 
per-order successor of each node & then set it , finally traverse it ?

correct me if i am wrong ?

Thanks
Shashank Mani
Computer Science
BIT Mesra

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/b51VObaoMZIJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to