Most viewed questions in Programming and DS

2 votes
1 answer
2203
The time required to determine the minimum element from the max heap of size O(log(n)) is given by
1 votes
1 answer
2204
4 votes
1 answer
2205
What is the output of the program#include<stdio.h>#include<conio.h>void main() {int i,j=20;clrscr();for(i=1;i<3;i++){ printf("%d,",i);continue;printf("%d",j);break;}getch...
1 votes
2 answers
2206
0 votes
0 answers
2207
complexity of algorithm to interchange the nth and mth element (node) of singly link list is:a.m+nb.m if m>=n otherwise nc.m if m<=n otherwise nd.m+min(m,n)ans given c?...
3 votes
4 answers
2208
What is the number of binary trees with $4$ nodes which when traversed in pre-order gives the sequence A, B, C, D?
1 votes
0 answers
2209
Keys 9,19,29,39,49,59,69 are inserted into a hash table containing entries from 0 to 9 using hash function H=kmod10 and quadratic probing is used for collision resolution...
0 votes
0 answers
2211
Why 4 is multiplied in part. In the solution.
0 votes
0 answers
2212
1 votes
1 answer
2213
(5) Would the following program give a compilation error or warning?main() { float i = 10, *j; void *k; k=&i; j= k; printf("\n%f", *j); }
4 votes
1 answer
2214
What are we suppose to take?LR - 2 rotations.RL- 2 rotations.ORLR - 1 rotation.RL- 1 rotation.Kindly Solve and Verify the Total Numbers of Rotations Performed.
0 votes
1 answer
2215
$6.2-3$What is the effect of calling MAX-HEAPIFY(A,i) when the element A[i] is larger that its children?
0 votes
2 answers
2216
What is the maximum possible height of an AVL tree with 20 nodes?
3 votes
2 answers
2218
Assume that there are two lower triangular matrices P and Q of size $m\times m$.If matrix P and transpose of Q are fit into rectangular matrix R of size $m\times\left ( m...
1 votes
2 answers
2219
What is the time complexity to delete the root node in right skew tree?I knew the three cases of BST deletion:- 0 child,one child,two child.But how can we handle this par...
2 votes
2 answers
2220