← Microsoft questions
CodingReported in a candidate post, Feb 2026

Min Stack-style problem with clean API design

Filed under Microsoft

Design a stack that supports push(x), pop(), top() and get_min() (retrieve the minimum element currently in the stack), all in constant time. Pay attention to a clean API: define behaviour for an…

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 Microsoft questions

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