~/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.
17 problems
Interview roadmap
Sliding window Grow and shrink a window over a string or array.
- Play first: The Dragon Market 1-minute game One-pass max profit
- Best sum of k in a row basics py · c++ · java easy
- Repeat artists in every k-song stretch py · c++ · java easy
- Best Time to Buy and Sell Stock code the boss py · c++ · java easy
- Minimum Size Subarray Sum py · c++ · java medium
- Longest Substring Without Repeating Characters ▶ boss game py · c++ · java medium
- Longest Repeating Character Replacement py · c++ · java medium
- Minimum Window Substring py · c++ · java hard
- Sliding Window Maximum ▶ boss game py · c++ · java hard
More practice: 9 problems
- Contains Duplicate II py · c++ · java easy
- Repeated DNA Sequences py · c++ · java medium
- Shortest stretch with k different values GoogleUber py · c++ · java medium
- Max Consecutive Ones III py · c++ · java medium
- Fruit Into Baskets py · c++ · java medium
- Permutation in String py · c++ · java medium
- Find All Anagrams in a String py · c++ · java medium
- Median of every window py · c++ · java hard
- Equal range search and sliding-window top K assessment 2 levels Citadel py · c++ · java medium