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
- 1Longest Substring Without Repeating Characters (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium35companies
- 2Sliding Window Maximum (opens LeetCode in a new tab)Array, Queue, Sliding WindowHard21companies
- 3Minimum Window Substring (opens LeetCode in a new tab)Hash Table, String, Sliding WindowHard18companies
- 4Subarray Product Less Than K (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium14companies
- 5Max Consecutive Ones III (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium13companies
- 6Minimum Size Subarray Sum (opens LeetCode in a new tab)Array, Binary Search, Sliding WindowMedium13companies
- 7Find K Closest Elements (opens LeetCode in a new tab)Array, Two Pointers, Binary SearchMedium12companies
- 8Permutation in String (opens LeetCode in a new tab)Hash Table, Two Pointers, StringMedium12companies
- 9Fruit Into Baskets (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowMedium11companies
- 10Contains Duplicate II (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowEasy10companies
- 11Find All Anagrams in a String (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
- 12Longest Repeating Character Replacement (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
- 13Longest Substring with At Most K Distinct Characters (opens LeetCode in a new tab)Hash Table, String, Sliding WindowMedium9companies
- 14Maximum Average Subarray I (opens LeetCode in a new tab)Array, Sliding WindowEasy9companies
- 15Maximum Points You Can Obtain from Cards (opens LeetCode in a new tab)Array, Sliding Window, Prefix SumMedium9companies
- 16Subarrays with K Different Integers (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowHard9companies
- 17Frequency of the Most Frequent Element (opens LeetCode in a new tab)Array, Binary Search, GreedyMedium8companies
- 18Smallest Range Covering Elements from K Lists (opens LeetCode in a new tab)Array, Hash Table, GreedyHard8companies
- 19Contains Duplicate III (opens LeetCode in a new tab)Array, Sliding Window, SortingHard7companies
- 20Count Number of Nice Subarrays (opens LeetCode in a new tab)Array, Hash Table, MathMedium7companies
- 21Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (opens LeetCode in a new tab)Array, Queue, Sliding WindowMedium7companies
- 22Longest Substring with At Least K Repeating Characters (opens LeetCode in a new tab)Hash Table, String, Divide and ConquerMedium7companies
- 23Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold (opens LeetCode in a new tab)Array, Sliding WindowMedium7companies
- 24Shortest Subarray with Sum at Least K (opens LeetCode in a new tab)Array, Binary Search, QueueHard7companies
- 25Sliding Window Median (opens LeetCode in a new tab)Array, Hash Table, Sliding WindowHard7companies
- 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.
- liquidslr/leetcode-company-wise-problems: the problem lists for each company (titles, difficulty, frequency, topics, LeetCode links).
- nishant-Tiwari24/company-wise-dsa: the focus tip and important topics shown on each company card.
Problem text stays on LeetCode; we link to it. Frequencies are relative within a company.
Last synced