Implement Min Stack using a single stack
Filed under HashedIn
The question
Implement a stack that supports retrieving the minimum element in constant time using only one underlying stack data structure.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.