How to iterate through a tree in spiral order ???

Posted by Nidhi on Stack Overflow See other posts from Stack Overflow or by Nidhi
Published on 2010-05-14T01:34:53Z Indexed on 2010/05/14 1:44 UTC
Read the original article Hit count: 230

Filed under:
|
           1 
      2              3
  4       5        6       7
8  9   10   11   12 13   14  15   

the output in spiral order should be 1 3 2 4 5 6 7 15 14 13 12 11 10 9 8

© Stack Overflow or respective owner

Related posts about data-structures

Related posts about homework