Hot questions in Programming and DS

48 votes
4 answers
82
50 votes
9 answers
83
Consider the following rooted tree with the vertex labeled $P$ as the root:The order in which the nodes are visited during an in-order traversal of the tree is$SQPTRWUV$$...
31 votes
4 answers
88
How many distinct binary search trees can be created out of $4$ distinct keys?$5$$14$$24$$42$
42 votes
5 answers
89
59 votes
4 answers
91
Consider the following function.double f(double x){ if( abs(x*x - 3) < 0.01) return x; else return f(x/2 + 1.5/x); }Give a value $q$ (to $2$ decimals) such that $f(q)$ wi...
33 votes
10 answers
94
26 votes
4 answers
95
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height $h$ is:$2^h -1$$2^{h-1} -1$$2^...
5 votes
6 answers
96
29 votes
11 answers
97
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...
1 votes
2 answers
98
a machine took 200 sec to sort 200 names using bubble sort . in 800 sec it can approx sort how many namesa)400 b)800 c)750 d)850