• 0

Is This Possible?


Question

3 answers to this question

Recommended Posts

  • 0

highly unlikely to because in a heap after insertion, the elements are reheaped up. furthermore, in a heap they are inserted at the next available spot. whereas in a BST they are added to the left or right and keep moving down. so back to heap, in heap we add at the bottom and move it up as per required. :)

Link to comment
Share on other sites

  • 0

re: it being possible.. i have never found a set of 8 integers which when inserted form the same tree

maybe if u insert 8 integers of the same value it might form the same tree... but then it really wouldnt be a bst

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.