Augment a stack so it can answer an extra query — like the current minimum — in O(1) alongside push/pop.
Notes from readers
Comments — via GitHub