1.

What is the fundamental operation on leftist heap?(a) insertion(b) merging(c) deletion(d) swappingMy question is taken from Heap topic in section Heap of Data Structures & Algorithms IThis question was addressed to me in a job interview.

Answer»

The correct option is (b) merging

The EXPLANATION is: The fundamental OPERATIONS on leftist heaps is MERGE. Insertion operation is a merge of a one-node heap with a LARGER heap.



Discussion

No Comment Found

Related InterviewSolutions