Most answered questions in Programming and DS

3 votes
1 answer
2551
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
0 votes
1 answer
2552
1 votes
1 answer
2553
give an o(n) algorithm to check whether the given binary tree is bst or not
0 votes
1 answer
2554
The Correct answer is c but how?int main(){ int a=210,b=120,c; c=a>b?1,2,3:2,5,6,7; printf("%d",c);}ans:-a) 1b) 2c) 3d) Error.
0 votes
1 answer
2555
pointers question, can someone please explain me solution
1 votes
1 answer
2556
Stack valid permutation , They haven't mentioned anywhere that input is in ascending order
0 votes
1 answer
2557
Data structure for loop. What is oxf ? can somebody explain
1 votes
1 answer
2558
from where we can practice different variety of programming questions related to output except previous year
3 votes
1 answer
2559
1 votes
1 answer
2560
#include <stdio.h main() { if (sizeof(int) -1) printf("True"); else printf("False"); }I expect output is True. But the output is False. Why? explain!!
1 votes
1 answer
2561
#include<stdio.h main() { char *p = 0; *p = 'a'; printf("value in pointer p is %c\n",*p); }What is the output of this code ? Why?
0 votes
1 answer
2562
what is Potential function in Fibonacci heap (i dont remember the question ) plz explain with example
1 votes
1 answer
2564
Give an algorithm for finding the height or depth of the tree
0 votes
1 answer
2565
#include<stdio.h int main() { char *x; int a = 512; x = (char *) &a; x[0] = 1; x = 2; printf("%d\n",a); return 0; }What is the output of above program?Machine dependent$...
2 votes
1 answer
2567
We have a binary heap with given n elements and now we want to insert n more elements, then what is the time required for insert those elements i) if elements inserted on...
0 votes
1 answer
2568
What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?Linked ListStack QueueTreeplease explain also
6 votes
1 answer
2569
What is the number of binary trees with 4 nodes which when traversed in pre-order gives the sequence 1,2,3,4?