← back

Sliding Window

140 questions · 0 seen

All Sliding Window problems

Problems

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