Sliding window
17 videos • 11 views • by LetsCode
Most often used in leetcode
1
Leetcode 2747. Count Zero Request Servers (offline query + sliding window)
LetsCode
Download
2
Leetcode 992. Subarrays with K Different Integers (sliding window reverse thinking)
LetsCode
Download
3
Leetcode 2799. Count Complete Subarrays in an Array (sliding window)
LetsCode
Download
4
Leetcode 727. Minimum Window Subsequence (sliding window)
LetsCode
Download
5
1918 Kth Smallest Subarray Sum (binary search + sliding window)
LetsCode
Download
6
Leetcode 2653. Sliding Subarray Beauty (sliding window + sorting)
LetsCode
Download
7
Leetcode 480. Sliding Window Median (sliding window and sorted list)
LetsCode
Download
8
Leetcode 76. Minimum Window Substring (2 Counter sliding window optimize to O(N))
LetsCode
Download
9
Leetcode 438. Find All Anagrams in a String (2 Counter sliding window + 567)
LetsCode
Download
10
Leetcode 159. Longest Substring with At Most Two Distinct Characters (sliding window 340)
LetsCode
Download
11
Leetcode 487. Max Consecutive Ones II (sliding window template with 1004)
LetsCode
Download
12
Leetcode 3. Longest Substring Without Repeating Characters (better sliding window)
LetsCode
Download
13
Leetcode 239. Sliding Window Maximum (from sorted list to monotonic queue)
LetsCode
Download
14
Leetcode 2831. Find the Longest Equal Subarray (sliding window + hash table)
LetsCode
Download
15
Leetcode 424. Longest Repeating Character Replacement (sliding window)
LetsCode
Download
16
Leetcode 2781. Length of the Longest Valid Substring (sliding window)
LetsCode
Download
17
Leetcode 3. Longest Substring Without Repeating Characters (sliding window)
LetsCode
Download