recategorized by
5,589 views

2 Answers

Best answer
3 3 votes
Operation push(1) push(2) pop push(3) push(4) pop pop push(5) pop
          4        
    2   3 3 3   5  
  1 1 1 1 1 1 1 1 1

Hence,Option(D)1 is the correct choice.

selected by
1 1 vote

Answer: 1

Push 1    Push 2

 1    Pop 2

1     Push 3    Push 4 

1     Pop 4     Pop 3

1     Push 5  

1     Pop 5

1    <=== Answer

Answer:
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
10.4k
10.4k views
go_editor asked Jul 10, 2016
10,431 views
A hash function $f$ defined as $f (key) = key \mod 13$, with linear probing is used to insert keys 55, 58, 68, 91, 27, 145. What will be the location of 79?1234
3 3 votes
2 2 answers
8.9k
8.9k views
go_editor asked Jul 8, 2016
8,929 views
In which tree, for every node the height of its left subtree and right subtree differ almost by 1?Binary Search TreeAVL TreeThreaded Binary TreeComplete Binary Tree
4 4 votes
1 answers 1 answer
6.4k
6.4k views
im.raj asked Jun 16, 2016
6,439 views
The worst case time complexity of AVL is tree is better in comparison to binary search tree forSearch and Insert OperationsSearch and Delete OperationsInsert and Delete O...
5 5 votes
2 answers 2 answers
5.5k
5.5k views
go_editor asked Jul 11, 2016
5,453 views
The maximum number of keys stored in a B-tree of order $m$ and depth $d$ is$m^{d +1}-1$$\frac{m^{d+1}-1}{m-1}$$(m-1)(m^{d+1}-1)$$\frac{m^d-1}{m-1}$