MEDIUMImportant2026GATE-CSData Structures
data-structuresstacks-queues-and-deques2-mark
A.
B.
C.
D.
Correct Answer: A;B
Explanation:
Loading...
Correct Answer: A;B
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 SeriesWe wish to augment a stack with an O(1) MIN operation (returns pointer to min-key record, no deletio…
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); …