Previous GATE Questions in Programming and DS

25 votes
3 answers
213
29 votes
11 answers
214
A complete $n$-ary tree is one in which every node has $0$ or $n$ sons. If $x$ is the number of internal nodes of a complete $n$-ary tree, the number of leaves in it is g...
41 votes
4 answers
221
Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of $n$ nodes?$O(1)$$O(\log n)$...
22 votes
8 answers
222
In a complete $k$-ary tree, every internal node has exactly $k$ children. The number of leaves in such a tree with $n$ internal node is:$nk$$(n-1)k + 1$$n(k-1) +1$$n(k-1)...
31 votes
4 answers
223
How many distinct binary search trees can be created out of $4$ distinct keys?$5$$14$$24$$42$
20 votes
1 answer
224
13 votes
3 answers
228
43 votes
8 answers
229
An Abstract Data Type (ADT) is:same as an abstract classa data type that cannot be instantiateda data type for which only the operations defined on it can be used, but no...