MEDIUMImportant2025GATE-CSData Structures
data-structuresstacks2-mark
A.
B.
C.
D.
Correct Answer: A
Explanation:
Loading...
Correct Answer: A
Explanation:
Take your GATE-CS preparation to the next level. Practice with full-length mock tests, get instant results, and track your progress with detailed analytics.
Browse GATE-CS Test SeriesConsider a stack S and a queue Q. Both initially empty with capacity 10. Elements 1, 2, 3, 4, 5 arri…
S1 has capacity 4, already has elements 100 (bottom), 200, 300, 400 (top). S2 has capacity 2 and is …
Sequence a: a0=1, a1=5, a2=7, a3=8, a4=9, a5=2. Operations on stack S and queue Q (both initially em…
Consider the following sequence of operations on an empty stack and an empty queue:Stack: Push(54); …