1.

The following figure is an example for(a) d-heap(b) binary heap(c) leftist heap(d) skew heapI need to ask this question from Heap topic in section Heap of Data Structures & Algorithms IThis question was addressed to me in a national level competition.

Answer»

Right answer is (a) d-HEAP

Best EXPLANATION: The GIVEN heap is a d-heap since it looks LIKE a binary heap with d- children. Here, d=3.



Discussion

No Comment Found

Related InterviewSolutions