Most viewed questions in Programming and DS

0 votes
1 answer
2
168 votes
17 answers
4
40 votes
5 answers
5
What is the maximum height of any AVL-tree with $7$ nodes? Assume that the height of a tree with a single node is $0$.$2$$3$$4$$5$
67 votes
14 answers
7
The number of possible min-heaps containing each value from $\{1,2,3,4,5,6,7\}$ exactly once is _______
49 votes
7 answers
9
The postfix expression for the infix expression $A+B*(C+D)/F+D*E$ is:$AB + CD + *F/D +E*$$ABCD + *F/DE* ++$$A * B + CD/F *DE ++$$A + *BCD/F* DE ++$
43 votes
6 answers
11
A binary tree $T$ has $n$ leaf nodes. The number of nodes of degree $2$ in $T$ is$\log_2 n$$n-1$$n$$2^n$
33 votes
6 answers
16
79 votes
10 answers
19
In a min-heap with $n$ elements with the smallest element at the root, the $7^{th}$ smallest element can be found in time$\Theta (n \log n)$$\Theta (n)$$\Theta(\log n)$$\...
48 votes
9 answers
20
We are given a set of $n$ distinct elements and an unlabeled binary tree with $n$ nodes. In how many ways can we populate the tree with the given set so that it becomes a...