Gate2017 cs Q34

0. Let T be a binary search tree with 15 nodes. The minimum and maximum possible heights of T are:
Note: The height of a tree with a single node is 0.

  • Option : B
  • Explanation :

    Min height = floor(log2N) = floor(log215)=3
    Max height n-1 = 14, when the tree is either left skewed or right skewed.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *