1.

What is the highest element of the given maximum ternary heap?(a) 31(b) 10(c) 18(d) 20The doubt is from Ternary Heap in chapter Heap of Data Structures & Algorithms II got this question in unit test.

Answer»

Right option is (a) 31

Explanation: TERNARY heap is a type of data structure in the field of computer SCIENCE. It is a PART of the Heap data structure family. Maximum ternary heap has the highest ELEMENT as its root NODE. The parent node is all either equal or greater than children node in a maximum ternary heap.



Discussion

No Comment Found

Related InterviewSolutions