Do a level order traversal, like in BFS, and make the child sibling tree accordingly
Anurag Sharma On Wed, Jun 16, 2010 at 11:59 PM, divya <[email protected]> wrote: > Given a Parent -Child binary tree ,build the child -sibling version of > it? Minimize the space requirements wherever possible. > > -- > 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]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- 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.
