Previous GATE Questions in Programming and DS

8 votes
5 answers
33
27 votes
2 answers
34
What is the worst case time complexity of inserting $n^{2}$ elements into an AVL-tree with $n$ elements initially?$\Theta (n^{4})$$\Theta (n^{2})$$\Theta (n^{2}\log n)$$\...
36 votes
9 answers
35
What is the worst case time complexity of inserting $n$ elements into an empty linked list, if the linked list needs to be maintained in sorted order?$\Theta(n)$$\Theta(n...
29 votes
4 answers
37
28 votes
6 answers
39
Consider the array representation of a binary min-heap containing $1023$ elements. The minimum number of comparisons required to find the maximum in the heap is _________...
18 votes
2 answers
46
67 votes
14 answers
48
The number of possible min-heaps containing each value from $\{1,2,3,4,5,6,7\}$ exactly once is _______