Most viewed questions in Programming and DS

6 votes
2 answers
2372
1 votes
1 answer
2373
What is the time complexity of quick sort when (i) Choosing median of sorted array as pivot.
6 votes
2 answers
2375
The number of min heap trees are possible with 15 elements such that every leaf node must be greater than all non-leaf nodes of the tree are ________.
1 votes
1 answer
2376
Assume that there are two lower triangular matrices A and B of size n*n. If matrix A and transpose of B are fit into a rectangular matrix C of size n*(n+1), thena) B[i,j]...
1 votes
1 answer
2378
Please tell me about all the variations of these above types of questions that can be asked?
1 votes
1 answer
2379
The number of min heap trees are possible with 15 elements such that every leaf node must be greater than all non-leaf nodes of the tree are ________.
0 votes
1 answer
2380
when is it possible in binary search tree that (preorder,inorder) ,(postorder,inorder),and (preorder,postorder) are equal.please explain AND what about binary tree
1 votes
1 answer
2382
main(){int a;scanf("%i"&a);printf("%i %d",a,a);scanf("%d",&a);printf("%i %d",a,a);}suppose user entered 0101 as input .what is printed by above program?
2 votes
1 answer
2383
main( ){char ch = 200 ;printf ( "\n%d", ch ) ;}
2 votes
2 answers
2384
#include<stdio.h #include<stdlib.h int main() { struct xx { int x; char s; }; struct xx *t; t->x=5; t->s='a'; printf("%d %c\n", t->x, t->s); }
3 votes
1 answer
2385
The output of below code is_______________. int main() { int i = 120; int *a = &i; foo(&a); printf("%d ", *a); printf("%d ", *a); } void foo(int const a) { int j = 210; ...
0 votes
2 answers
2386
I saw on http://www.cquestions.com/2009/06/memory-representation-of-int-data-type.html but it seems wrong to me. Please clarify.
0 votes
2 answers
2389
void PrintValue(int n) { if (n < 0) return; else { printf(n); printValue( n); printValue(n ); printf(n); } }Output for Print(5) ?
0 votes
0 answers
2390
Leaf Nodes =[ Internal nodes with degree 2 ] + 1It is valid if we consider Tree as undirected graph ?Or is it valid only for Tree when considered as directed graph