📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following is true for a

    min-heap?
    A Parent node is greater than child nodes Correct Answer Incorrect Answer
    B Parent node is smaller than child nodes Correct Answer Incorrect Answer
    C Leaf nodes are always greater than root Correct Answer Incorrect Answer
    D Heap can be unsorted Correct Answer Incorrect Answer
    E Heap stores only integers Correct Answer Incorrect Answer

    Solution

    Min-heap ensures the parent node is smaller than all of its children, enabling efficient extraction of minimum.

    Practice Next
    ask-question