Stack

2 problems using this pattern

About this pattern:

LIFO data structure for parsing, expression evaluation, and nested structure problems.

Often used with: Monotonic Stack

Complexity Range

Time Complexity

O(n) (2 problems)

Space Complexity

O(n) (2 problems)

Problems Using Stack

← Back to All Patterns