Tag view

#sliding-window

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with sliding-window

3 cards

Coding Exercises Hard O(n + m)

Minimum Window Substring

Track how many required characters are satisfied as you grow the right edge. Once the window is valid, shrink from the left to find the smallest valid window before expanding again.

Return the smallest substring of s that contains all characters from t.