What are the siblings of smallest element of the given maximum ternary heap?

Thanh Hoan

New member
What are the siblings of smallest element of the given maximum ternary heap?
A. 31
B. 12
C. 18
D. 22
 
Answer: c
Explanation: 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. The smallest element in the maximum ternary heap is 10 and its siblings are 18, 20.
 

Tìm kiếm

Back
Top