+1 vote
in Data Structures & Algorithms I by (88.2k points)
In a leftist heap, all the operations should be performed on?

(a) left path

(b) centre path

(c) right path

(d) root

This intriguing question comes from Heap in portion Heap of Data Structures & Algorithms I

The question was asked in unit test.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
The correct answer is (c) right path

The explanation is: All the operations are performed on the right path because right paths are short. However, insertion and merges cannot be performed on the right path.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.