Results 1 to 3 of 3

Thread: bst

  1. #1
    Join Date
    Sep 2004
    Posts
    8

    Arrow Unanswered: bst

    i would like to know how to free memory of each individual nodes of a binary search tree
    Last edited by twokai; 09-14-04 at 08:47.

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Start at the leaf nodes and work toward the root ?

    I'm not being funny, but based on your question this is the best answer I can offer.

    -PatP

  3. #3
    Join Date
    Sep 2004
    Posts
    8
    thanx.i did that using post order traversal(i.e from leaf to root)

Posting Permissions

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