← back
Sliding Window
140 questions · 0 seen
All Sliding Window problems
Actions
⊣ Practice
Sliding Window
⊣ Quiz
Sliding Window
Problems
⊣ 3 Longest Substring Without Repeating Characters
Medium
⊣ 30 Substring with Concatenation of All Words
Hard
⊣ 76 Minimum Window Substring
Hard
⊣ 187 Repeated DNA Sequences
Medium
⊣ 209 Minimum Size Subarray Sum
Medium
⊣ 219 Contains Duplicate II
Easy
⊣ 220 Contains Duplicate III
Hard
⊣ 239 Sliding Window Maximum
Hard
⊣ 395 Longest Substring with At Least K Repeating Characters
Medium
⊣ 413 Arithmetic Slices
Medium
⊣ 424 Longest Repeating Character Replacement
Medium
⊣ 438 Find All Anagrams in a String
Medium
⊣ 480 Sliding Window Median
Hard
⊣ 567 Permutation in String
Medium
⊣ 594 Longest Harmonious Subsequence
Easy
⊣ 632 Smallest Range Covering Elements from K Lists
Hard
⊣ 643 Maximum Average Subarray I (PRO)
Easy
⊣ 658 Find K Closest Elements
Medium
⊣ 689 Maximum Sum of 3 Non-Overlapping Subarrays
Hard
⊣ 713 Subarray Product Less Than K
Medium
⊣ 718 Maximum Length of Repeated Subarray
Medium
⊣ 837 New 21 Game
Medium
⊣ 862 Shortest Subarray with Sum at Least K
Hard
⊣ 904 Fruit Into Baskets
Medium
⊣ 930 Binary Subarrays With Sum
Medium
⊣ 978 Longest Turbulent Subarray
Medium
⊣ 992 Subarrays with K Different Integers
Hard
⊣ 995 Minimum Number of K Consecutive Bit Flips
Hard
⊣ 1004 Max Consecutive Ones III
Medium
⊣ 1016 Binary String With Substrings Representing 1 To N
Medium
⊣ 1031 Maximum Sum of Two Non-Overlapping Subarrays
Medium
⊣ 1040 Moving Stones Until Consecutive II
Medium
⊣ 1044 Longest Duplicate Substring
Hard
⊣ 1052 Grumpy Bookstore Owner
Medium
⊣ 1156 Swap For Longest Repeated Character Substring
Medium
⊣ 1208 Get Equal Substrings Within Budget
Medium
⊣ 1234 Replace the Substring for Balanced String
Medium
⊣ 1248 Count Number of Nice Subarrays
Medium
⊣ 1297 Maximum Number of Occurrences of a Substring
Medium
⊣ 1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Medium
⊣ 1358 Number of Substrings Containing All Three Characters
Medium
⊣ 1423 Maximum Points You Can Obtain from Cards
Medium
⊣ 1425 Constrained Subsequence Sum
Hard
⊣ 1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Medium
⊣ 1456 Maximum Number of Vowels in a Substring of Given Length
Medium
⊣ 1477 Find Two Non-overlapping Sub-arrays Each With Target Sum
Medium
⊣ 1493 Longest Subarray of 1's After Deleting One Element
Medium
⊣ 1499 Max Value of Equation
Hard
⊣ 1610 Maximum Number of Visible Points
Hard
⊣ 1652 Defuse the Bomb
Easy
⊣ 1658 Minimum Operations to Reduce X to Zero
Medium
⊣ 1695 Maximum Erasure Value
Medium
⊣ 1703 Minimum Adjacent Swaps for K Consecutive Ones
Hard
⊣ 1763 Longest Nice Substring (PRO)
Easy
⊣ 1838 Frequency of the Most Frequent Element
Medium
⊣ 1839 Longest Substring Of All Vowels in Order (PRO)
Medium
⊣ 1871 Jump Game VII
Medium
⊣ 1876 Substrings of Size Three with Distinct Characters (PRO)
Easy
⊣ 1888 Minimum Number of Flips to Make the Binary String Alternating
Medium
⊣ 1984 Minimum Difference Between Highest and Lowest of K Scores
Easy
⊣ 2009 Minimum Number of Operations to Make Array Continuous
Hard
⊣ 2024 Maximize the Confusion of an Exam
Medium
⊣ 2090 K Radius Subarray Averages
Medium
⊣ 2106 Maximum Fruits Harvested After at Most K Steps
Hard
⊣ 2110 Number of Smooth Descent Periods of a Stock
Medium
⊣ 2134 Minimum Swaps to Group All 1's Together II
Medium
⊣ 2156 Find Substring With Given Hash Value
Hard
⊣ 2260 Minimum Consecutive Cards to Pick Up
Medium
⊣ 2269 Find the K-Beauty of a Number
Easy
⊣ 2271 Maximum White Tiles Covered by a Carpet
Medium
⊣ 2302 Count Subarrays With Score Less Than K
Hard
⊣ 2379 Minimum Recolors to Get K Consecutive Black Blocks
Easy
⊣ 2398 Maximum Number of Robots Within Budget
Hard
⊣ 2401 Longest Nice Subarray
Medium
⊣ 2411 Smallest Subarrays With Maximum Bitwise OR
Medium
⊣ 2444 Count Subarrays With Fixed Bounds
Hard
⊣ 2461 Maximum Sum of Distinct Subarrays With Length K
Medium
⊣ 2516 Take K of Each Character From Left and Right
Medium
⊣ 2528 Maximize the Minimum Powered City
Hard
⊣ 2537 Count the Number of Good Subarrays
Medium
⊣ 2555 Maximize Win From Two Segments
Medium
⊣ 2653 Sliding Subarray Beauty
Medium
⊣ 2730 Find the Longest Semi-Repetitive Substring
Medium
⊣ 2747 Count Zero Request Servers
Medium
⊣ 2760 Longest Even Odd Subarray With Threshold
Easy
⊣ 2762 Continuous Subarrays
Medium
⊣ 2779 Maximum Beauty of an Array After Applying Operation
Medium
⊣ 2781 Length of the Longest Valid Substring
Hard
⊣ 2799 Count Complete Subarrays in an Array
Medium
⊣ 2831 Find the Longest Equal Subarray
Medium
⊣ 2841 Maximum Sum of Almost Unique Subarray
Medium
⊣ 2875 Minimum Size Subarray in Infinite Array
Medium
⊣ 2902 Count of Sub-Multisets With Bounded Sum
Hard
⊣ 2904 Shortest and Lexicographically Smallest Beautiful String
Medium
⊣ 2932 Maximum Strong Pair XOR I
Easy
⊣ 2935 Maximum Strong Pair XOR II
Hard
⊣ 2953 Count Complete Substrings
Hard
⊣ 2958 Length of Longest Subarray With at Most K Frequency
Medium
⊣ 2962 Count Subarrays Where Max Element Appears at Least K Times
Medium
⊣ 2968 Apply Operations to Maximize Frequency Score
Hard
⊣ 2981 Find Longest Special Substring That Occurs Thrice I
Medium
⊣ 2982 Find Longest Special Substring That Occurs Thrice II
Medium
⊣ 3013 Divide an Array Into Subarrays With Minimum Cost II
Hard
⊣ 3086 Minimum Moves to Pick K Ones (PRO)
Hard
⊣ 3090 Maximum Length Substring With Two Occurrences
Easy
⊣ 3095 Shortest Subarray With OR at Least K I
Easy
⊣ 3097 Shortest Subarray With OR at Least K II
Medium
⊣ 3134 Find the Median of the Uniqueness Array
Hard
⊣ 3191 Minimum Operations to Make Binary Array Elements Equal to One I
Medium
⊣ 3206 Alternating Groups I
Easy
⊣ 3208 Alternating Groups II
Medium
⊣ 3254 Find the Power of K-Size Subarrays I
Medium
⊣ 3255 Find the Power of K-Size Subarrays II
Medium
⊣ 3258 Count Substrings That Satisfy K-Constraint I
Easy
⊣ 3261 Count Substrings That Satisfy K-Constraint II
Hard
⊣ 3297 Count Substrings That Can Be Rearranged to Contain a String I
Medium
⊣ 3298 Count Substrings That Can Be Rearranged to Contain a String II
Hard
⊣ 3305 Count of Substrings Containing Every Vowel and K Consonants I
Medium
⊣ 3306 Count of Substrings Containing Every Vowel and K Consonants II
Medium
⊣ 3318 Find X-Sum of All K-Long Subarrays I
Easy
⊣ 3321 Find X-Sum of All K-Long Subarrays II
Hard
⊣ 3325 Count Substrings With K-Frequency Characters I
Medium
⊣ 3346 Maximum Frequency of an Element After Performing Operations I
Medium
⊣ 3347 Maximum Frequency of an Element After Performing Operations II
Hard
⊣ 3364 Minimum Positive Sum Subarray
Easy
⊣ 3411 Maximum Subarray With Equal Products
Easy
⊣ 3413 Maximum Coins From K Consecutive Bags
Medium
⊣ 3420 Count Non-Decreasing Subarrays After K Operations
Hard
⊣ 3439 Reschedule Meetings for Maximum Free Time I
Medium
⊣ 3445 Maximum Difference Between Even and Odd Frequency II
Hard
⊣ 3505 Minimum Operations to Make Elements Within K Subarrays Equal
Hard
⊣ 3578 Count Partitions With Max-Min Difference at Most K
Medium
⊣ 3589 Count Prime-Gap Balanced Subarrays
Medium
⊣ 3634 Minimum Removals to Balance Array
Medium
⊣ 3652 Best Time to Buy and Sell Stock using Strategy
Medium
⊣ 3679 Minimum Discards to Balance Inventory
Medium
⊣ 3694 Distinct Points Reachable After Substring Removal
Medium
⊣ 3768 Minimum Inversion Count in Subarrays of Fixed Length
Hard
⊣ 3795 Minimum Subarray Length With Distinct Sum At Least K
Medium
⊣ 3845 Maximum Subarray XOR with Bounded Range
Hard