Hi guys,
Recently I came across a problem. We've to display a binary tree in
spiral.
1. We need to print the nodes in BFS manner.
2. The nodes should be displayed in alternate direction; in one level
from left to right and in next level right to left.
Needless to mention, we need least time complex solution.
Thanks
Nayn

--

You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@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=.


Reply via email to