~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Interview roadmap
Sliding window
Grow and shrink a window over a string or array.
13 problems
Interview roadmap
Sliding window Grow and shrink a window over a string or array.
- Basics: best sum of k in a row (fixed-size window) basics py · c++ · java easy
- Repeat artists in every k-song stretch py · c++ · java easy
- Longest Substring Without Repeating Characters py · c++ · java medium
- Longest Repeating Character Replacement py · c++ · java medium
- Minimum Window Substring py · c++ · java hard
- Sliding Window Maximum py · c++ · java hard
- Median of every window py · c++ · java hard
- Equal range search and sliding-window top K 2 levels Citadel medium
- Shortest stretch with k different values GoogleUber py · c++ · java medium
- Best Time to Buy and Sell Stock py · c++ · java easy
- Permutation in String py · c++ · java medium
- Minimum Size Subarray Sum py · c++ · java medium
- Contains Duplicate II py · c++ · java easy