Design a stack that retrieves the minimum element in O(1)
Filed under UBS
The question
Implement a stack that supports retrieving the minimum element in constant time complexity.
No write-up yet. Related questions below have one.
Related UBS questions
Collected from public candidate posts and coding forums. Updated Nov 2026.