Examveda

What would be the result if the left subtree of the root has a null path length of 1 and the right subtree has a null path length of 2?

A. merge occurs without violation

B. violation at left subtree

C. violation at right subtree

D. violation at the root

Answer: Option D


This Question Belongs to Data Structure >> Heaps

Join The Discussion

Related Questions on Heaps

Which of the following is true for a min-heap?

A. The root node is the smallest element, and every parent node is smaller than its children.

B. The root node is the largest element, and every parent node is larger than its children.

C. All nodes are arranged in a complete binary tree.

D. The tree is always balanced.