Problem 155 · Medium

Min Stack

Pair each push with the running minimum so getMin() is always O(1).

Open the interactive visualisation