1.

What is the prime condition of AA-tree which makes it simpler than a red-black tree?(a) Only right children can be red(b) Only left children can be red(c) Right children should strictly be black(d) There should be no left childrenMy question is from Binary Trees topic in section Binary Trees of Data Structures & Algorithms II have been asked this question in an interview for job.

Answer»

Correct ANSWER is (a) Only right children can be RED

Explanation: The prime CONDITION of AA-Tree is that only the right children can be red to eliminate possible restructuring cases.



Discussion

No Comment Found

Related InterviewSolutions