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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly