Back to all patterns

Stack / Monotonic Stack

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Stack / Monotonic Stack 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)

Car Fleet

Calculate number of car fleets that will arrive at destination.

Key Signals:

Sort by positionCalculate arrival timesMerge slower cars