MEDIUM2023GATE-CSData Structures
data-structuresstacks2-mark
Correct Answer: 5
Explanation:
Loading...
Correct Answer: 5
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…
We 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 …
Consider the following sequence of operations on an empty stack and an empty queue:Stack: Push(54); …