Sliding Window

128 LeetCode questions

Difficulty Distribution

Easy
18
14%
Medium
77
60%
Hard
33
26%

Top Companies

Questions

TitleDifficulty
Longest Substring Without Repeating CharactersMedium
Contains Duplicate IIEasy
Find All Anagrams in a StringMedium
Permutation in StringMedium
Replace the Substring for Balanced StringMedium
Minimum Window SubstringHard
Sliding Window MaximumHard
Longest Repeating Character ReplacementMedium
Find K Closest ElementsMedium
Subarray Product Less Than KMedium
Fruit Into BasketsMedium
Binary Subarrays With SumMedium
Subarrays with K Different IntegersHard
Count Subarrays Where Max Element Appears at Least K TimesMedium
Minimum Swaps to Group All 1's Together IIMedium
Max Consecutive Ones IIIMedium
Arithmetic SlicesMedium
Contains Duplicate IIIHard
Constrained Subsequence SumHard
Substring with Concatenation of All WordsHard
Repeated DNA SequencesMedium
Minimum Size Subarray SumMedium
Longest Substring with At Least K Repeating CharactersMedium
Sliding Window MedianHard
Longest Harmonious SubsequenceEasy
Smallest Range Covering Elements from K ListsHard
Maximum Average Subarray IEasy
Maximum Length of Repeated SubarrayMedium
Shortest Subarray with Sum at Least KHard
Minimum Number of K Consecutive Bit FlipsHard
Longest Duplicate SubstringHard
Grumpy Bookstore OwnerMedium
Count Number of Nice SubarraysMedium
Number of Substrings Containing All Three CharactersMedium
Maximum Points You Can Obtain from CardsMedium
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium
Maximum Number of Vowels in a Substring of Given LengthMedium
Longest Subarray of 1's After Deleting One ElementMedium
Defuse the BombEasy
Minimum Operations to Reduce X to ZeroMedium
Maximum Erasure ValueMedium
Frequency of the Most Frequent ElementMedium
Substrings of Size Three with Distinct CharactersEasy
Minimum Difference Between Highest and Lowest of K ScoresEasy
K Radius Subarray AveragesMedium
Number of Smooth Descent Periods of a StockMedium
Maximum Number of Robots Within BudgetHard
Longest Nice SubarrayMedium
Smallest Subarrays With Maximum Bitwise ORMedium
Count Subarrays With Fixed BoundsHard
Maximum Sum of Distinct Subarrays With Length KMedium
Count the Number of Good SubarraysMedium
Sliding Subarray BeautyMedium
Count Zero Request ServersMedium
Count Complete Subarrays in an ArrayMedium
Continuous SubarraysMedium
Length of the Longest Valid SubstringHard
Maximum Sum of Almost Unique SubarrayMedium
Length of Longest Subarray With at Most K FrequencyMedium
Find the Median of the Uniqueness ArrayHard
Longest Turbulent SubarrayMedium
Minimum Operations to Make Binary Array Elements Equal to One IMedium
Shortest Subarray With OR at Least K IIMedium
Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMedium
Take K of Each Character From Left and RightMedium
Find Longest Special Substring That Occurs Thrice IMedium
Jump Game VIIMedium
Maximum Sum of 3 Non-Overlapping SubarraysHard
Maximum Coins From K Consecutive BagsMedium
Maximum Sum of Two Non-Overlapping SubarraysMedium
Minimum Recolors to Get K Consecutive Black BlocksEasy
Minimum Positive Sum SubarrayEasy
Count of Substrings Containing Every Vowel and K Consonants IIMedium
Alternating Groups IEasy
Count Subarrays With Score Less Than KHard
Maximum Difference Between Even and Odd Frequency IIHard
Longest Nice SubstringEasy
Reschedule Meetings for Maximum Free Time IMedium
Maximum Beauty of an Array After Applying OperationMedium
Maximum Number of Visible PointsHard
Maximum Fruits Harvested After at Most K StepsHard
Minimum Removals to Balance ArrayMedium
New 21 GameMedium
Maximum Number of Occurrences of a SubstringMedium
Count Substrings That Can Be Rearranged to Contain a String IMedium
Maximum Frequency of an Element After Performing Operations IIHard
Maximum Frequency of an Element After Performing Operations IMedium
Find X-Sum of All K-Long Subarrays IEasy
Maximize the Minimum Powered CityHard
Longest Substring Of All Vowels in OrderMedium
Count Partitions With Max-Min Difference at Most KMedium
Best Time to Buy and Sell Stock using StrategyMedium
Find the Power of K-Size Subarrays IMedium
Divide an Array Into Subarrays With Minimum Cost IIHard
Maximum Length Substring With Two OccurrencesEasy
Maximize the Confusion of an ExamMedium
Minimum Number of Operations to Make Array ContinuousHard
Minimum Consecutive Cards to Pick UpMedium
Alternating Groups IIMedium
Longest Even Odd Subarray With ThresholdEasy

Showing 100 of 128 questions