Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. A complete binary min-heap is made by including each integer in [1,1023] exactly once. The depth of a node in the heap is the length of the path from the root of the heap to that node. Thus, the root is at depth 0. The maximum depth at which integer 9 can appear is _______.
    1. 8
    2. 4
    3. 44
    4. 24
Correct Option: A

8
Within ‘n’ levels of min heap, nth smallest element will be present.



Your comments will be displayed only after manual approval.