Skip to content
RED SAGSkills
medium10 pts · first answer countsstacks-and-queues

Stack with O(1) getMin

You need a stack that supports push, pop and getMin, all in O(1). What is the usual design?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions