Hot questions in Programming and DS

0 votes
0 answers
1982
T(n)= T(4n/5)+O(n)... we can't apply master's theorem to solve it??? And if not then how are we going solve this..
0 votes
0 answers
1983
0 votes
1 answer
1985
int m= -14;int n=6;int o;o=m%++n;n+=m++ - o;m<<=(o^n)&3;assuming 2's complement arithemetic ; what should be the final value of m,n,o??
1 votes
0 answers
1986
What happens to the code which is present after a return..??Compilation error, or it is ignored or something else
1 votes
1 answer
1988
Given an array A[-1:6,-2:10]. The base address of array is 1000. If every elements takes 4 bytes for storage then compute the address of element A[5,7]answer given is 134...
0 votes
0 answers
1989
6 votes
2 answers
1991
In a min-heap, the next largest element of a particular element can be found in ___ time.A) O(1)B) O(log n)C) O(n)
2 votes
1 answer
1992
What is the worst case time complexity to construct unique BST froma:) Inorder and preordera:) Inorder and postorder
0 votes
0 answers
1993
#include<stdio.h #include<stdlib.h int main(int argc, char argv) { int i, j=0; for(i=0; i<argc; i++) j = j+atoi(argv[i]); printf("%d\n", j); return 0; }
0 votes
2 answers
1995
Number of possible ordered trees with 3 nodes x,y,z
0 votes
0 answers
1996
0 votes
0 answers
1997
Please convert it to postfix by using stack and explain in detailvoid (*bsd_signal(int sig, void (*func)(int)))(int);
0 votes
0 answers
1998
What is the minimum runtime to reverse a doubly linked list?answer given O(n) . shouldn't it be O(1) ?
0 votes
1 answer
2000
Maximum number of BFS Traversal Possible on BST of height 3 is ..........