What are Sliding Window?
- Sliding Window technique is a common algorithm used in various problem-solving scenarios, particularly in computer science
- It involves maintaining a window of a fixed size that slides over a data structure, typically an array or string
- As the window moves, calculations or comparisons are made within the current window to find specific patterns, subarrays, or optimal solutions
Related examples
- Read my solution to some LeetCode problems below
- Best Time to Buy and Sell Stock
- Longest Substring Without Repeating Characters
- https://docs.google.com/document/d/1OiEYxC6jXoZMtXaA2dt_krmBJ3YsWWykUzuC_4D4DXg/edit?usp=sharing
Resources
Concepts explained here are following those from Neetcode’s roadmap
.