Hot questions in Programming and DS

57 votes
11 answers
32
In a binary tree, the number of internal nodes of degree $1$ is $5$, and the number of internal nodes of degree $2$ is $10$. The number of leaf nodes in the binary tree i...
42 votes
12 answers
39
Consider a binary tree T that has $200$ leaf nodes. Then the number of nodes in T that have exactly two children are ______.
22 votes
7 answers
41
What is the minimum number of stacks of size $n$ required to implement a queue of size $n$?OneTwoThreeFour
54 votes
7 answers
42
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)} ...
36 votes
9 answers
44
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...
31 votes
8 answers
45
43 votes
9 answers
47
35 votes
12 answers
48