You are given a binary string s of length n and an integer numOps.
In one operation, you can choose any character in s and flip it, changing '0' to '1' or '1' to '0'.
Return the minimum possible length of the longest substring consisting of identical characters after performing at most numOps operations.
Constraints:
s.length
s consists only of '0' and '1'.
numOps
You are given a binary string s of length n and an integer numOps.
In one operation, you can choose any character in s and flip it, changing '0' to '1' or '1' to '0'.
Return the minimum possible length of the longest substring consisting of identical characters after performing at most numOps operations.
Constraints:
s.length
s consists only of '0' and '1'.
numOps