1658. Minimum Operations to Reduce X to Zero https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero
713. Subarray Product Less Than K https://leetcode.com/problems/subarray-product-less-than-k
1004. Max Consecutive Ones III https://leetcode.com/problems/max-consecutive-ones-iii
424. Longest Repeating Character Replacement https://leetcode.com/problems/longest-repeating-character-replacement
219. Contains Duplicate II https://leetcode.com/problems/contains-duplicate-ii
220. Contains Duplicate III https://leetcode.com/problems/contains-duplicate-iii
209. Minimum Size Subarray Sum https://leetcode.com/problems/minimum-size-subarray-sum
395. Longest Substring with At Least K Repeating Characters https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
Prerequisites
Before reading this article, you need to learn:
The application of the sliding window algorithm is very broad. However, our framework can be applied to all problems that require the sliding window algorithm. Below, I will illustrate some of the most classic problems. I will repeatedly emphasize the thinking process from the Sliding Window Algorithm Framework to strengthen your understanding and memory of this algorithm.