Skip to content

Fixed-length sliding window

Basic

  • 1456.Maximum Number of Vowels in a Substring of Given Length
  • 643.Maximum Average Subarray I
  • 1343.Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
  • 2090.K Radius Subarray Averages
  • 2379.Minimum Recolors to Get K Consecutive Black Blocks
  • 1052.Grumpy Bookstore Owner
  • 1461.Check If a String Contains All Binary Codes of Size K
  • 2841.Maximum Sum of Almost Unique Subarray
  • 2461.Maximum Sum of Distinct Subarrays with Length K
  • 1423.Maximum Points You Can Obtain from Cards
  • 1652.Defuse the Bomb
  • 1297.Maximum Number of Occurrences of a Substring
  • 2653.Sliding Subarray Beauty
  • 1176.Diet Plan Performance (Premium)
  • 1100.Find K-Length Substrings with No Repeated Characters (Premium)
  • 1852.Distinct Numbers in Each Subarray (Premium)
  • 1151.Minimum Swaps to Group All 1's Together (Premium)
  • 2107.Number of Unique Flavors After Sharing K Candies (Premium)

Advanced

  • 2134.Minimum Swaps to Group All 1's Together II
  • 1888.Minimum Number of Flips to Make the Binary String Alternating
  • 567.Permutation in String
  • 438.Find All Anagrams in a String
  • 30.Substring with Concatenation of All Words
  • 2156.Find Substring With Given Hash Value
  • 2953.Count Complete Substrings
  • 683.K-Closed Bulbs (Premium)
  • 2067.Number of Equal Count Substrings (Premium)
  • 2524.Maximum Frequency Score of a Subarray (Premium)

Other

  • 2269.Find the K-Beauty of a Number
  • 1984.Minimum Difference Between Highest and Lowest of K Scores
  • 220.Contains Duplicate III