CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Apr 2009
    Posts
    26

    [RESOLVED] tree traversals

    I have to list to the vertices according to a preorder traversal, an inorder traversal, and a postorder traversal.

    Here's what I have so far:

    preorder: 0,1,3,6,7,9,10,2,4,5,8,11

    inorder: 0,1,2,3,4,5,6,7,8,9,10,11

    postorder: need help on how to do this

    are the first 2 correct?
    Attached Files Attached Files

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