1.

What is inefficient with the below threaded binary tree picture?(a) it has dangling pointers(b) nothing inefficient(c) incorrect threaded tree(d) space is being used moreMy question comes from Threaded Binary Tree in portion Binary Trees of Data Structures & Algorithms IThis question was posed to me in an interview for internship.

Answer»

Right answer is (a) it has DANGLING pointers

Easy explanation - The NODES extreme LEFT and right are pointing to nothing which could be ALSO used EFFICIENTLY.



Discussion

No Comment Found

Related InterviewSolutions