Most viewed questions in Programming and DS

2 votes
5 answers
101
The minimum number of fields with each node of doubly linked list is1234
44 votes
5 answers
102
The concatenation of two lists is to be performed on $O(1)$ time. Which of the following implementations of a list should be used?Singly linked listDoubly linked listCirc...
43 votes
8 answers
104
An Abstract Data Type (ADT) is:same as an abstract classa data type that cannot be instantiateda data type for which only the operations defined on it can be used, but no...
59 votes
4 answers
107
Consider the following function.double f(double x){ if( abs(x*x - 3) < 0.01) return x; else return f(x/2 + 1.5/x); }Give a value $q$ (to $2$ decimals) such that $f(q)$ wi...
1 votes
1 answer
109
8. What are the worst case and average case complexities of a binary search tree?a) O(n), O(n)b) O(logn), O(logn)c) O(logn), O(n)d) O(n), O(logn)
7 votes
4 answers
110
The number of possible ordered trees with 3 nodes A, B, C is:(a) 16 (b) 12 (c) 6 (d) 10 what is ordered tree alignment?
38 votes
7 answers
111
Let $T$ be a tree with $10$ vertices. The sum of the degrees of all the vertices in $T$ is ________
8 votes
5 answers
112
2 votes
4 answers
113
The post-order traversal of binary tree is $\text{ACEDBHIGF}$. The pre-order traversal is$\text{A B C D E F G H I}$$\text{F B A D C E G I H}$$\text{F A B C D E G H I}$$\t...
6 votes
1 answer
115
The best data structure to check whether an arithmetic expression has balanced parenthesis is a:QueueStackTreeList
1 votes
2 answers
118
a machine took 200 sec to sort 200 names using bubble sort . in 800 sec it can approx sort how many namesa)400 b)800 c)750 d)850
5 votes
2 answers
119
#include <stdio.h int main() { int y = 2; int z = y +(y = 10); printf("%d\n", z); }