Educative

Why not just return maxRepeatLetterCount + k

Since the maxRepeatLetterCount is global, why not just return maxRepeatLetterCount + k?

3 Likes

@Design_Gurus thoughts?

Doest work in this case :

“AABABBA” , 1

Output - 5

Expected - 4