Skip to content

Latest commit

 

History

History

Sliding Window

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fork me on GitHub

Sliding Window : 🚩

TIP : Whenever any question asks us to minimize or maximize something but in a contiguous place.

Questions

Problem Name
Permutation in String (Leetcode-567)
Find All Anagrams in a String (Leetcode-438)
Subarray Product Less Than K (Leetcode-713)
Sliding Window Maximum (Leetcode-239)
Minimum Swaps to Group All 1's Together (Leetcode-1151)
Minimum Swaps to Group All 1's Together II (Leetcode-2134)
Maximum Points You Can Obtain from Cards (Leetcode-1423)
Number of Subarrays with Bounded Maximum (Leetcode-795)
Contains Duplicate III (Leetcode-220)
First negative integer in every window of size k
Count Occurences of Anagrams
Longest Sub-Array with Sum K
Longest K unique characters substring
Minimum Window Substring (Leetcode-76)
Push Dominoes(Leetcode-838)
Find the Longest Substring Containing Vowels in Even Counts(Leetcode-1371)
Substring with Concatenation of All Words (Leetcode-30)
Minimum Size Subarray Sum (Leetcode-209)
Contains Duplicate II (Leetcode-219)
Count Subarrays With Fixed Bounds (Leetcode-2444)
Maximum Number of Vowels in a Substring of Given Length (Leetcode-1456)
K Radius Subarray Averages (Leetcode-2090)
Longest Subarray of 1's After Deleting One Element (Leetcode-1493)
Maximize the Confusion of an Exam (Leetcode-2024)
Frequency of the Most Frequent Element (Leetcode-1838)
Count Complete Substrings (Leetcode-2953)
Largest Sum Subarray of Size at least K (GfG)
Smallest window containing 0, 1 and 2 (GfG)
Binary Subarrays With Sum (Leetcode - 930)
Subarrays with K Different Integers (Leetcode - 992)
Get Equal Substrings Within Budget (Leetcode - 1208)
Find Subarray With Bitwise AND Closest to K (Leetcode - 3171)
Grumpy Bookstore Owner (Leetcode - 1052)
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Leetcode - 1438)
Count Substrings That Satisfy K-Constraint I & II (Leetcode - 3258 & 3261)
Find the Power of K-Size Subarrays I (Leetcode - 3254)
Shortest Subarray with Sum at Least K (Leetcode - 862)
Maximum Sum of Distinct Subarrays With Length K (Leetcode - 2461)
Take K of Each Character From Left and Right (Leetcode - 2516)
Continuous Subarrays (Leetcode - 2762)
Alternating Groups II (Leetcode - 3208)
Count of Substrings Containing Every Vowel and K Consonants II (Leetcode - 3306)
Number of Substrings Containing All Three Characters (Leetcode - 1358)
Longest Nice Subarray (Leetcode - 2401)