- Sliding windows is a technique where you use two pointers that either move towards each other or away from each other.
- Sliding windows is used when you need to find a set of elements that fulfill certain constraints.
- Using two variables.
- O(n)
- O(1)
- Best Time to Buy and Sell Stock | Easy | Solution
- Longest Substring Without Repeating Characters | Medium | Solution
- Longest Repeating Character Replacement | Medium | Solution
- Permutation in String | Medium | Solution
- Minimum Window Substring | Hard | Solution
- Sliding Window Maximum | Hard | Solution
Category: Sliding Windows
Status: Done
Author: David Bujosa