viod mirror(node *root) { node* tmp; if(root) { mirror(root->left); mirror(root->right);
tmp=root->left; root->left=root->right; root->right=tmp; } } On Thu, Jul 28, 2011 at 6:40 PM, Piyush Sinha <ecstasy.piy...@gmail.com>wrote: > http://www.ideone.com/NyAmw > > > On Thu, Jul 28, 2011 at 5:48 PM, Coder Coder <algogeek.co...@gmail.com>wrote: > >> Can anyone tell me the iterative code to find mirror image of a binary >> tree?? >> >> >> thanx.. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> 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. >> > > > > -- > *Piyush Sinha* > *IIIT, Allahabad* > *+91-7483122727* > * <https://www.facebook.com/profile.php?id=100000655377926> "NEVER SAY > NEVER" > * > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > 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. > -- **Regards SAGAR PAREEK COMPUTER SCIENCE AND ENGINEERING NIT ALLAHABAD -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. 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.