Problem library
Sliding Window
All problems that are about sliding window.
29
/ 29 problems
| Problem | Category | Time | Solved |
|---|---|---|---|
|
Number of substrings containing all three characters
sliding-window
|
O(n) | May 28, 2023 | |
|
Count the number of good subarray
sliding-window
|
O(n) | Jan 18, 2023 | |
|
Maximize the confusion of an exam
sliding-window
|
O(n) | Dec 9, 2022 | |
|
Find k length substrings with no repeated characters
sliding-window
|
O(n) | Dec 3, 2022 | |
|
Longest substring with at most k distinct characters
sliding-window
|
O(n) | Dec 3, 2022 | |
|
Longest substring with at most two distinct characters
sliding-window
|
O(n) | Dec 3, 2022 | |
|
Sliding window median
sliding-window
|
O(nlog(n)) | Nov 23, 2022 | |
|
Binary subarrays with sum
array-and-hashmap
sliding-window
|
O(n) | Nov 19, 2022 | |
|
Longest substring of all vowels in order
sliding-window
|
O(n) | Nov 15, 2022 | |
|
Minimum swaps to group all 1s together II
sliding-window
|
O(n) | Nov 1, 2022 | |
|
Fruit into baskets
sliding-window
|
O(n) | Oct 28, 2022 | |
|
Max consecutive ones III
sliding-window
|
O(n) | Oct 28, 2022 | |
|
Max consecutive ones
sliding-window
|
O(n) | Oct 28, 2022 | |
|
Replace the substring for balanced string
sliding-window
|
O(n) | Oct 28, 2022 | |
|
Frequency of the most frequent element
sliding-window
|
O(nlogn) | Oct 9, 2022 | |
|
Find the index of the first occurrence in a string
sliding-window
|
O(n) | Oct 8, 2022 | |
|
Minimum difference between highest and lowest of k scores
sliding-window
|
O(nlog(n)) | Oct 2, 2022 | |
|
Maximum erasure value
sliding-window
|
O(n) | Sep 8, 2022 | |
|
Minimum consecutive cards to pick up
sliding-window
|
O(n) | Sep 8, 2022 | |
|
Repeated dna sequences
sliding-window
|
O(n) | Sep 8, 2022 | |
|
Get equal substrings within budget
sliding-window
|
O(n) | Aug 30, 2022 | |
|
Minimum size subarray sum
sliding-window
|
O(n) | Aug 29, 2022 | |
|
Substring with concatenation of all words
sliding-window
|
O(n*w) | Aug 13, 2022 | |
|
Minimum window substring
sliding-window
|
O(n) | Aug 3, 2022 | |
|
Sliding window maximum
sliding-window
|
O(n) | Aug 3, 2022 | |
|
Permutation in string
sliding-window
|
O(n) | Aug 2, 2022 | |
|
Longest repeating character replacement
sliding-window
|
O(n) | Jul 29, 2022 | |
|
Longest substring without repeating characters
sliding-window
|
O(n) | Jul 24, 2022 | |
|
Best time to buy and sell stock
sliding-window
|
O(n) | Jul 17, 2022 |
No matching problems
Try clearing one of the filters.