Recent questions in Programming and DS

0 votes
0 answers
2501
0 votes
1 answer
2502
Count the no. Of token and also explain the token count rule?printf("i=%d,&i=%x",i&i);
0 votes
1 answer
2503
0 votes
2 answers
2504
What will be output if you will compile and execute the following c code? #include<stdio.h>int main(){char c=125;c=c+10;printf("%d",c); return 0;}(A) 135(B) 115(C) -121(D...
0 votes
0 answers
2505
How many binary trees are possible with given preorder:- ABCDAnd given postorder:- cdba
0 votes
0 answers
2506
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
2507
0 votes
0 answers
2510
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
1 answer
2513
A search was performed on some binary search tree. Which of the following is a valid search sequence?(A) 1, 11, 111, 98, 58, 78, 90, 48, 88(B) 333, 33, 53, 93, 63, 90, 70...
1 votes
1 answer
2514
Please explain the working of pointers in this question. I'm unable to understand how we are getting this answer.
0 votes
0 answers
2515
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
2516
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.
1 votes
1 answer
2517
suppose given size of short int =2, char is 1 and of int is 4B int main(){short int i=20;charc=97;printf("%d,%d,%d",sizeof(i),sizeof(c),sizeof(c+i));return o;}output of ...
0 votes
1 answer
2519
to find the maximum elements in a min heap represnted by an array can be computed in ____________ timea. theta nb.theta n2c.theta nlognd.theta 1
0 votes
0 answers
2520
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?...