The letters being replaced must be the same alphabet (i-e acccgfac, k=3 are we only allowed to replace ccc?)
or the characters being replaced can be different alphabets as well (i-e acccgfac, k=3 we are allowed to replace gfa?)
Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Longest Substring with Same Letters after Replacement (hard) - Grokking the Coding Interview: Patterns for Coding Questions