1.

A binary tree is balanced if the difference between left and right subtree of every node is not more than ____(a) 1(b) 3(c) 2(d) 0The question is from Binary Trees in portion Binary Trees of Data Structures & Algorithms II got this question during an online exam.

Answer»

Right option is (a) 1

Best EXPLANATION: In a BALANCED binary tree the heights of two SUBTREES of every node never DIFFER by more than 1.



Discussion

No Comment Found

Related InterviewSolutions