1.

In a leftist heap, all the operations should be performed on?(a) left path(b) centre path(c) right path(d) rootThis intriguing question comes from Heap in portion Heap of Data Structures & Algorithms IThe question was asked in unit test.

Answer»

The correct answer is (c) RIGHT PATH

The EXPLANATION is: All the operations are PERFORMED on the right path because right paths are short. HOWEVER, insertion and merges cannot be performed on the right path.



Discussion

No Comment Found

Related InterviewSolutions