CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Location
    Bangalore
    Posts
    78

    Question Convet Binary tree to Circular linked list

    Hi All,

    How to convert a Binary tree to Circular linked list?

    Any help would be appreciated.

    With Regards,
    A.Ilamparithi.

  2. #2
    Join Date
    Feb 2005
    Location
    Normandy in France
    Posts
    4,590

    Re: Convet Binary tree to Circular linked list

    Just parse the tree and accumulate visited data into a linked list.
    A binary tree parser is a very simple recursive function that you should write easily.
    "inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
    Club of lovers of the C++ typecasts cute syntax: Only recorded member.

    Out of memory happens! Handle it properly!
    Say no to g_new()!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured