Recent questions in Programming and DS

1 votes
1 answer
2481
For searching an element from heap,then delete it from heapWhy will it take O(n+log n) time and not O(n log n) time?
0 votes
0 answers
2482
1 votes
0 answers
2484
Consider inserting the key 10,22,31,4,15,28,17,88,59 using open addressing technique into hash table of length m=11 with hash function h(k)= k mod 11 what is no of colli...
2 votes
1 answer
2485
What is the output of the following ?int main(){int arr [3] ={1,2,3,4,5,6,7,8,9,10,11,12};printf("%d%d", a -a[0], a [0]-a[0][0]);return 0;}
1 votes
2 answers
2486
assume the preorder tŕaversal of binary tree is "abc" how many total different binary trees are possible whose postorder traversal.is "cba" with the given preorder trave...
0 votes
0 answers
2487
Assume that a lower traingular matrix A[0.....n-1,0...n-1] is stored in a linear array B [0....1/2 n (n+1)-1] in row by row order for n=100 if A[0,0] is stored inB[0] whe...
0 votes
1 answer
2488
https://gateoverflow.in/?qa=blob&qa_blobid=12037309044418228871someone plz solve this question??
0 votes
0 answers
2490
void Do(struct*node head){ if(!head)return; printf("%d",head->data); Do(head->next);} so which statement follow which inside bracket i am getting doubt??if we...
1 votes
1 answer
2491
What is the default return type in C?i) voidii) intiii) doubleiv) long int
0 votes
0 answers
2492
Answer given is 132 but on geeks for geeks solution is http://www.geeksforgeeks.org/number-of-ways-to-traverse-an-n-ary-tree/. Which is correct
0 votes
1 answer
2493
int *p, A[3]={0,1,2};p=A;*(P+2)=5;p=A++;*P=7; what are the values stored in the atray A from index 0 to index 2 after execution of the above cod?
0 votes
0 answers
2494
The number of ways in which the numbers 1, 2, 3, 4, 5 can be inserted into binary heap. Such that resulted binary heap is max heap ________.
0 votes
1 answer
2496
What will be the output of following C program, if int takes 16 bits to store.Int a=60;printf(“%d”,~a);
0 votes
1 answer
2497
int func(int a) { if(a<=0) return a; else { printf(a); func(a-2); printf(a); func(a-3); } } #include<stdio.h int main(void) { int a=6; func(a); }what will be the sum of a...
0 votes
0 answers
2499
The solution given to this question is :How can z=5? According to me it should be 100
0 votes
0 answers
2500