After pushing -2, 0, -3 and popping once, what is the minimum?

Practice this question from Min Stack - Auxiliary stack Pattern Practice Quiz, with options and an explanation.

Question

After pushing -2, 0, -3 and popping once, what is the minimum?

Option A

-3

Option B — Correct answer

-2

Option C

0

Option D

No minimum exists

Explanation

After removing -3, the minimum becomes -2.

Min Stack - Auxiliary stack Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker