Substring or Subarray Search
Sliding Window Algorithm
Sliding Window algorithm template to solve all the Leetcode substring search problem.
Problems could be solved with sliding window algorithm:
Longest Substring with At Most Two Distinct Characters
Longest Substring with At Most K Distinct Characters
Example: Longest Substring with At Most K Distinct Characters
Last updated