bittu, you have written this code at end of main()
*printGivenOrder(start); printList(rslt);* so the BT in spiral order should be printed twice But you are getting a extra 4 only in place of the whole tree because of these lines *temp=current; current=head; rslt=appnd(temp,current); * There is an error in this code. you should assign *temp=rslt* so that current is added to the DLL rslt. In your code, it just assigns current to rslt whereas it should append current to rslt. That is why in the end 4 is assigned to rslt and it is the final value of rslt. So please make it: *temp=rslt; current=head; rslt=appnd(temp,current);* -- 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.
