A string is valid if it has the right length, uses only allowed letters, and never repeats a letter more than k times in a row. Check one string — then count all valid strings.
A string is valid if it has the right length, uses only allowed letters, and never repeats a letter more than k times in a row. Check one string — then count all valid strings.
The discussion opens with the full question.