Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I am trying to take the traversals and create a new heap which essentially mimicks the initial tree that the traversals were taken from. I'm trying to essentially translate the traversals into the tree it was before. Commented Apr 24, 2014 at 0:24
  • Are you trying to create a heap or a tree? I assume that you're trying to create Commented Apr 24, 2014 at 0:25
  • @Rick A heap but I was just saying tree as a generalization. Commented Apr 24, 2014 at 0:27
  • meh my answer maybe wrong ... but see the link at the end Commented Apr 24, 2014 at 0:35
  • @JoranBeasley "now write a function that does all that" is what I am trying to do in my question. I am just struggling with the coding of it. Commented Apr 24, 2014 at 0:37