Skip to main content
Sliding Window

25 Problems You Must Solve to Master Sliding Window Pattern

Prerna Sharma

Hi, my name is Prerna, working at Google as a Software Engineer. I have curated and accumulated 25 problems based on sliding window pattern. This is one of the most important and easiest topics one should cover for Coding Interviews.

Please share this article with someone who is preparing for Coding Interviews.
Join Discord to ask queries.
Subscribe to my YouTube channel where I regularly post LeetCode Daily Challenge and other stuff on engineering.

# Problem Title Difficulty Level Problem Link Video Solution Link
1 Substrings of Size Three with Distinct Characters
2 Defuse the Bomb
3 Maximum Length Substring With Two Occurrences
4 Find the K-Beauty of a Number
5 Minimum Recolors to Get K Consecutive Black Blocks
6 Max Consecutive Ones III
7 Binary Subarrays With Sum
8 Maximum Number of Vowels in a Substring of Given Length
9 Get Equal Substrings Within Budget
10 Length of Longest Subarray With at Most K Frequency
11 Subarray Product Less Than K
12 Find All Anagrams in a String
13 Count the Number of Good Subarrays
14 Permutation in String
15 Fruit Into Baskets
16 Longest Substring Without Repeating Characters
17 Maximum Sum of Distinct Subarrays With Length K
18 Count Zero Request Servers
19 Count Subarrays With Fixed Bounds
20 Subarrays with K Different Integers
21 Sliding Window Maximum
22 Minimum Window Substring
23 Substring with Concatenation of All Words
24 Count Complete Substrings
25 Maximum Number of Visible Points

I hope you love this. I will keep adding video solutions to all the problems on my YouTube.

Thank you 😄