โ† Microsoft questions

Design a min-stack with unit tests and generics

Filed under Microsoft

The question

Design a stack data structure that supports retrieving the minimum element in O(1) time and space.

No write-up yet. Related questions below have one.

Related Microsoft questions

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