1.

The worst case running time of all operations in a skew heap is given as?(a) O(N)(b) O(N log N)(c) O(N^2)(d) O(M log N)My query is from Heap topic in section Heap of Data Structures & Algorithms IThe question was posed to me in an online interview.

Answer»

The correct answer is (a) O(N)

Easiest explanation - The worst CASE running TIME of all operations in a skew HEAP is MATHEMATICALLY found to be O(N).



Discussion

No Comment Found

Related InterviewSolutions