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.

3
  • 4
    is that the only purpose of the heap? Commented Sep 7, 2014 at 22:30
  • 2
    Is it possible to store a reference to oldest and newest and update those references when items are added and removed from the heap? Commented Sep 8, 2014 at 0:53
  • Would a stack design work? Commented Sep 8, 2014 at 11:28