in DS edited by
1,997 views
0 votes
0 votes

https://gateoverflow.in/?qa=blob&qa_blobid=11435838562783483664

Approach for Q9 please .

(Please note: it is the last question on left hand side, and part of it is written on right hand side)

Answer is d, but according to me it should be b as in 3 situation when C is a queue and D is a stack, then it will count the no. Of elements but won't be restored in it's original state as mentioned in question. 

So only 1 and 2 is possible.

Is it correct?

in DS edited by
2.0k views

4 Comments

answer is correct, acc to answer key, but how is it possible? can u please elaborate?

who says? Do you believe there is no mistakes in made easy manual or test series ? 

0
0
yes! i agree, where am i wrong in this explaination?can u justify, after restoring it is not coming to the same stage
0
0
you didn't did any wrong...

read my first comment
0
0

1 Answer

0 votes
0 votes
As per I think ans is D ...

1 : C -> D -> C

2:  C -> D -> C

3:  C -> D -> C (element wise)