Sliding WIndow Flashcards
1
Q
Sliding window technic
A
left = 0 right = 0 while right < n: window.add(s[right]) right += 1 while (condition): window.remove(s[left]) left += 1
Sliding window technic
left = 0 right = 0 while right < n: window.add(s[right]) right += 1 while (condition): window.remove(s[left]) left += 1