Highest voted questions in Programming and DS

1 votes
1 answer
2431
Heap allocation is required for languages thatUse dynamic scope rulesSupport dynamic data structuresSupport recursionSupport recursion and dynamic data structures
1 votes
2 answers
2432
I am getting answer as 9T(3,1) - T(2,3) - T(1,7) I got T(1,7) value as 9 .
1 votes
1 answer
2433
1 votes
0 answers
2434
in tower ,smallest disk req, 2n-1 moves right ?
1 votes
1 answer
2435
Choose the right option.#define X 8 int main(void) { cout<<++X; return 0; }A) 8 B) 9C) Garbage Value C) Compile Error
1 votes
1 answer
2436
A rooted tree with 8 nodes has its nodes [1.....8] in preorder.When the tree is traversed in postorder.....nodes visited are{3,5,4,2,7,8,6,1}.Draw a tree for it.How to s...
1 votes
0 answers
2437
The number of BST possible with 6 nodes numbered 1,2,3,4,5,6 with exactly 1 leaf node __________
1 votes
2 answers
2438
fun(a,b) { if(a<0 && b<0) return 0; else if(a==0) return b+1; else if(b==0) return fun(a-1,1); else return fun(a-1,fun(a,b-1)); }compute fun(3,1)
1 votes
0 answers
2439
which is correct method for QP :1) 2) H(k) = (H+ i^2)mod m
1 votes
0 answers
2441
https://gateoverflow.in/?qa=blob&qa_blobid=11318007552752576944Answer given is : 40/121
1 votes
2 answers
2444
1 votes
1 answer
2445
1 votes
1 answer
2446
1 votes
0 answers
2447
Consider X[1...n] and Y[1...n] be two arrays, each containing n numbers both of which already sorted. What is the time complexity to find the median by combining two arra...
1 votes
1 answer
2448
int main() { int i,j; char a [3]={{'a','b','c'},{'d','e','f'}}; char b[3] ; char *p=*b; for(i=0;i<2;i++) { for(j=0;j<3;j++) { *(p+2*j+i)=a[i][j]; } } }please explain this...
1 votes
2 answers
2449
Can you see why the output of the following code is 256?main () { int a=0x1ff; char *careful= &a; *careful = 0; printf("%d", a); }
1 votes
0 answers
2450