1.

What is a ternary heap?(a) An array with three elements(b) Linked list with three elements(c) Tree with three children(d) Heap with all nodes having three childrenThe doubt is from Ternary Heap in portion Heap of Data Structures & Algorithms IThe question was asked in an interview for job.

Answer»

Right OPTION is (d) HEAP with all nodes having THREE children

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. So, it follows all the property of heap. THEREFORE, all the nodes in the ternary heap have 3 nodes.



Discussion

No Comment Found

Related InterviewSolutions