I don’t fully understand the condition to shrink the window. windowEnd will reach a point in which it is greater than the pattern.length, right?
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/4679331609575424