← Cisco questions

Get Minimum Element in Stack

Filed under Cisco

Design a stack that supports standard push, pop, and top operations, along with a getMin function that retrieves the minimum element in the stack in O(1) time. All operations should maintain constant…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.