knaxuslearn · build · ship

Sliding Window

A range over an array or string that grows and shrinks as you scan. 140 problems from 44 companies, most widely asked first. Tick them off as you go; your ticks stay in this browser.

problems
140
hard
36
done
0

140 of 140 problems

  1. 1Longest Substring Without Repeating Characters (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium35companies
  2. 2Sliding Window Maximum (opens LeetCode in a new tab)Array, Queue, Sliding WindowHard21companies
  3. 3Minimum Window Substring (opens LeetCode in a new tab)Hash Table, String, Sliding WindowHard18companies
  4. 4Subarray Product Less Than K (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium14companies
  5. 5Max Consecutive Ones III (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium13companies
  6. 6Minimum Size Subarray Sum (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium13companies
  7. 7Find K Closest Elements (opens LeetCode in a new tab)Array, Two Pointers, Binary SearchMedium12companies
  8. 8Permutation in String (opens LeetCode in a new tab)Hash Table, Two Pointers, StringMedium12companies
  9. 9Fruit Into Baskets (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowMedium11companies
  10. 10Contains Duplicate II (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowEasy10companies
  11. 11Find All Anagrams in a String (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
  12. 12Longest Repeating Character Replacement (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
  13. 13Longest Substring with At Most K Distinct Characters (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
  14. 14Maximum Average Subarray I (opens LeetCode in a new tab)Array, Sliding WindowEasy9companies
  15. 15Maximum Points You Can Obtain from Cards (opens LeetCode in a new tab)Array, Sliding Window, Prefix SumMedium9companies
  16. 16Subarrays with K Different Integers (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowHard9companies
  17. 17Frequency of the Most Frequent Element (opens LeetCode in a new tab)Array, Binary Search, GreedyMedium8companies
  18. 18Smallest Range Covering Elements from K Lists (opens LeetCode in a new tab)Array, Hash Table, GreedyHard8companies
  19. 19Contains Duplicate III (opens LeetCode in a new tab)Array, Sliding Window, SortingHard7companies
  20. 20Count Number of Nice Subarrays (opens LeetCode in a new tab)Array, Hash Table, MathMedium7companies
  21. 21Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (opens LeetCode in a new tab)Array, Queue, Sliding WindowMedium7companies
  22. 22Longest Substring with At Least K Repeating Characters (opens LeetCode in a new tab)Hash Table, String, Divide and ConquerMedium7companies
  23. 23Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold (opens LeetCode in a new tab)Array, Sliding WindowMedium7companies
  24. 24Shortest Subarray with Sum at Least K (opens LeetCode in a new tab)Array, Binary Search, QueueHard7companies
  25. 25Sliding Window Median (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowHard7companies
  26. Showing 25 of 140

"Companies" counts the companies in DSA Atlas that have asked the problem at any time. Patterns and data structures come from LeetCode topic tags. Your ticks are saved in this browser only, and shared with the company pages.

Credits

These lists are the work of two open GitHub projects. Thank you to their authors.

Problem text stays on LeetCode; we link to it. Frequencies are relative within a company.

Last synced