Most answered questions in Programming and DS

0 votes
0 answers
5141
How many binary trees are possible with given preorder:- ABCDAnd given postorder:- cdba
0 votes
0 answers
5142
what is complexity1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stackplz someone tell?
0 votes
0 answers
5143
0 votes
0 answers
5145
What is clustering effect in hashing How quadratic and pseudorandom method of hashing worksWhat is the difference between chaining and linklist method of hashing
0 votes
0 answers
5146
The minimum size that an array may require to store a binary tree with ‘n’ nodes is _______.A log$2^{log_{2}(n+1)} -1$B 2^{n}-1C n + 1
0 votes
0 answers
5147
Which of the following statement are true?1. Computing the most frequently occurring elements in an array a(1....n) can be done in o(nlogn) time.
0 votes
0 answers
5148
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?...
0 votes
0 answers
5149
void fun(char )innt main(){char *argv[]={"ab",cd","ef","gh"};fun(argv);return 0;}voidfun(char p){char *t;t=(p+=sizeof(int))[-1];pritf("%s\n",t);}output isa)cdb)ghc)efd)...
0 votes
0 answers
5150
What is lvalue and rvalue error in c
0 votes
0 answers
5151
can null graph can be biparted graph ?
1 votes
0 answers
5153
#include<stdio.h>int main(){ int i =6; for(int i=0;i<5;i++){ printf("%d",i);}} This code when run using C compiler gave exception redefinition of i .But with Cplus plu...
4 votes
0 answers
5154
main ( ){static char [3] [4] = {“abcd”, “mnop”, “fghi”};putchar ( a);}
0 votes
0 answers
5156
The number of possible ordered trees with 3 nodes A, B, C is:
1 votes
0 answers
5157
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node...
0 votes
0 answers
5159
T(n) =$\log$n + T($\sqrt{n}$)How to solve this?