Recent questions tagged data-structures

0 votes
1 answer
1201
0 votes
1 answer
1205
0 votes
0 answers
1206
Why 4 is multiplied in part. In the solution.
5 votes
6 answers
1207
0 votes
1 answer
1208
2 votes
1 answer
1209
The question basically says no. of different outputs produced for given sequence of input (1,2,...,n)I thought in terms of push - pop pairs but cant arrive at the answer ...
1 votes
1 answer
1213
0 votes
1 answer
1219
0 votes
0 answers
1220
Doubt: dequeue really deletes the element or just moves the pointer? I'm not getting the answer.
1 votes
1 answer
1223
A program takes input of a binary tree with N nodes and computes a function f(x)=max height of left subtree-max height of right subtreewhat is the time complexity?
0 votes
0 answers
1224
1 votes
2 answers
1225
What we can do if the unary operator comes in infix notation while converting it into postfix/prefix notations? For example, this $a = -b+c*d/e+f↑g↑h-i*j$
4 votes
1 answer
1227
If you are given a sorted list with n elements in ascending order. Then what will be the Time complexity to build a Min heap from the given array?
0 votes
1 answer
1228
3 votes
1 answer
1230
Given the input sequence {11,33,43,79,19} and hash table of size 10 with the hash function h(k)=k mod 10. If hash tables uses quadratic probing,the number of collisions o...