educative.io

Educative

Explanation could use some work

Hi guys,

This question could really use a pictorial representation, the explanation in words is a little confusing around the maxRepeatLetterCount

6 Likes

Thank you very much for your feedback. That’s a valid concern and we can definitely look into that. However, the concept of the “Sliding Window Pattern” is explained with illustrations in the introduction. The examples are just utilizing it accordingly. It’s assumed that the learner would understand how to use the technique after understanding the basic concept.

1 Like

It’s not about the basic concept in this question, it’s about the leap into being able to use the global maxRepeatLetterCount to judge local window action, which is not intuitive.

8 Likes

I agree

I had a challenging time contrasting principle of sliding window, from the specific criterias needed.

Also. Is there a reason I can’t just find the maximum frequency of a char and then add k?