← Mastercard questions
CodingReported in a candidate post, Sep 2024

Reverse a stack / min stack

Filed under Mastercard

Reverse a stack in place using only stack operations (push, pop, peek) and recursion, with no extra data structure. Also design a Min Stack with push, pop and get_min all in O(1) time. The report also…

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

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