Sliding Window

144 LeetCode questions

Difficulty Distribution

Easy
17
12%
Medium
90
63%
Hard
37
26%

Top Companies

Questions

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

Showing 100 of 144 questions