You are given a s. You are also given a string queryCharacters of length k and an integer array queryIndices of length k, which describe k queries.
For each query
The character at index queryIndices[i] in s is replaced by queryCharacters[i].
Compute the length of the longest substring of s that consists of a single repeating character.
Return an integer array of length k, where the value at index
Constraints:
s.length
s consists of lowercase English letters.
k == queryCharacters.length == queryIndices.length
k
queryCharacters consists of lowercase English letters.
queryIndices[i] s.length
You are given a s. You are also given a string queryCharacters of length k and an integer array queryIndices of length k, which describe k queries.
For each query
The character at index queryIndices[i] in s is replaced by queryCharacters[i].
Compute the length of the longest substring of s that consists of a single repeating character.
Return an integer array of length k, where the value at index
Constraints:
s.length
s consists of lowercase English letters.
k == queryCharacters.length == queryIndices.length
k
queryCharacters consists of lowercase English letters.
queryIndices[i] s.length