Recent questions in Programming and DS

1 votes
0 answers
222
Given a skew tree what will be the time complexity to balance the tree? What will be the algorithm for this?
1 votes
1 answer
223
An object whose contents cannot be changed once the object is created is called:(a) Immutable object(b) Mutable object(c) Smart object(d) Rich object
0 votes
1 answer
224
i have typed the following code but when i executed it the solution was not according to my expectation.unsigned short int y= -9; int iy=y; printf(“%d”,iy); solutio...
0 votes
0 answers
225
0 votes
1 answer
226
I am getting 5 as output, but the answer is 4, please verify
0 votes
0 answers
227
I want to know which evaluation is wrong here:a-b-c = ab-c- or a-b-c = abc- –a * b *c = ab*c* a*b*c = abc 3 . a+b-c = ab+c- a+b-c = ...
0 votes
2 answers
228
#include <stdio.h int main(){ int a[] = {5,3,7,2,4}; int *p = &a[3]; p -= *p; printf("%d ",*p); return 0; } output is 3.Why 2 * sizeof(int) is doene.?
0 votes
1 answer
229
Can we determine unique tree by Inorder and level order traversal .
0 votes
0 answers
230
1 votes
1 answer
231
DOUBT:suppose a memory space of 16B is given and it is asked that what is the maximum length of string it can store.then do we have to consider the space taken by the �...
0 votes
0 answers
232
0 votes
2 answers
234
What will be the output printed for find(4)? void find(int x) { static int i = 10, y = 0; y = y + i; for(i; i>0; i = i - 10) { if(x! = 0) find(x – 1); else printf(“%d...
0 votes
2 answers
235
Explain the method to calculate the address of an element in an array. A 25*4 matrix arrayDATA is stored in memory in ‘row-major order’. If base address is 200 and 4 ...
0 votes
1 answer
238
Given ‘N’ objects, which are coloured as red, white and blue. Sort theseobjects so that objects of the same colour are adjacent, with the coloursin the order red, whi...
3 votes
1 answer
239
Which data structure is commonly used to implement breadth first search in a graph?A queueA stackA heapA hash tableA splay tree