Design a stack with push, pop and top that can also report its smallest element — every operation in constant time.
Design a stack with push, pop and top that can also report its smallest element — every operation in constant time.
Opens with the full question.