Back to all patterns

Stack with Min Tracking

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Stack with Min Tracking pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (1)

Min Stack

Design a stack that supports push, pop, top, and retrieving minimum element in O(1).

Key Signals:

Track minimum at each levelTwo stacks or paired valuesSync operations