Hi, the example below says: no more than 2 distinct character. However, I see one substring with “a” character three times. if the limit is 2, the result should be “raa”. I tried to understand this question, but nothing til now.
Input: String="araaci", K=2 Output: 4 Explanation: The longest substring with no more than '2' distinct characters is "araa".