Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 184 Bytes

File metadata and controls

3 lines (2 loc) · 184 Bytes

Question

How would you design a stack which, in addition to push and pop, has a function min which returns the minimum element? Push, pop and min should all operate in 0(1) time.