InterviewSolution
Saved Bookmarks
| 1. |
What are null nodes filled with in a threaded binary tree?(a) inorder predecessor for left node and inorder successor for right node information(b) right node with inorder predecessor and left node with inorder successor information(c) they remain null(d) some other values randomlyMy doubt is from Threaded Binary Tree in chapter Binary Trees of Data Structures & Algorithms II got this question by my college director while I was bunking the class. |
|
Answer» CORRECT choice is (a) inorder predecessor for LEFT NODE and inorder successor for right node information The best I can explain: If preorder or POSTORDER is used then the respective predecessor and successor info is STORED. |
|