1.

Choose the correct properties of weak-heap.(a) Every node has value greater than the value of child node(b) Every right child of node has greater value than parent node(c) Every left child of node has greater value than parent node(d) Every left and right child of node has same value as parent nodeThe question is from Weak Heap in division Heap of Data Structures & Algorithms II had been asked this question during an interview for a job.

Answer»

Right option is (B) Every right CHILD of node has greater value than parent node

The BEST explanation: This is the PROPERTY of a weak HEAP.



Discussion

No Comment Found

Related InterviewSolutions