You are given a string answerKey, where each character represents an answer to a question as either 'T' or 'F'. You are also given an integer k.
In a single operation, you can change the character at any position of answerKey to either 'T' or 'F'.
Return the maximum length of a substring containing consecutive identical characters in answerKey after performing at most k operations.
Constraints:
n answerKey.length
n
answerKey[i] is either 'T' or 'F'
k n
You are given a string answerKey, where each character represents an answer to a question as either 'T' or 'F'. You are also given an integer k.
In a single operation, you can change the character at any position of answerKey to either 'T' or 'F'.
Return the maximum length of a substring containing consecutive identical characters in answerKey after performing at most k operations.
Constraints:
n answerKey.length
n
answerKey[i] is either 'T' or 'F'
k n