Back to Home

Sliding Window

The sliding window technique maintains a window of elements while iterating through a sequence. It's optimal for problems involving contiguous subarrays or substrings, reducing time complexity from O(n²) to O(n) for many problems.

6
Problems
1
Easy
3
Medium
2
Hard