How to implement a min stack?
Implement min_stack(operations) using a stack that supports push, pop, top, and getMin. Each operation must run in O(1) time. Return results for pop, top, and getMin operations in execution order; push produces no result.
Each operation is represented as ['push', value] or [operation]. Inputs are valid and never pop or inspect an empty stack.
def min_stack(operations):