Most viewed questions in Programming and DS

22 votes
7 answers
61
What is the minimum number of stacks of size $n$ required to implement a queue of size $n$?OneTwoThreeFour
42 votes
12 answers
62
Consider a binary tree T that has $200$ leaf nodes. Then the number of nodes in T that have exactly two children are ______.
1 votes
1 answer
66
81 votes
6 answers
67
Let $T(n)$ be the number of different binary search trees on $n$ distinct elements.Then $T(n) = \sum_{k=1}^{n} T(k-1)T(x)$, where $x$ is $n-k+1$$n-k$$n-k-1$$n-k-2$
25 votes
3 answers
68
Suppose the numbers $7, 5, 1, 8, 3, 6, 0, 9, 4, 2$ are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering o...
0 votes
0 answers
73
22 votes
8 answers
74
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)...
35 votes
4 answers
75
Linked lists are not suitable data structures for which one of the following problems?Insertion sortBinary searchRadix sortPolynomial manipulation
54 votes
7 answers
76
A binary search tree is used to locate the number $43$. Which of the following probe sequences are possible and which are not? Explain.$\begin{array}{llllll} \text{(a)} ...
3 votes
2 answers
77
To represent hierarchical relationship between elements, which data structure is suitable?DequeuePriorityTreeAll of the above
64 votes
7 answers
78
27 votes
6 answers
80