Sliding Window

1 problem using this pattern

About this pattern:

Maintain a window of elements and slide it to find optimal subarrays efficiently.

Often used with: Hash Map

Complexity Range

Time Complexity

O(n) (1 problem)

Space Complexity

O(k) (1 problem)

Problems Using Sliding Window

← Back to All Patterns