You are given a binary string s and an integer k.
A binary string satisfies the
The total count of '0' characters is at most k.
The total count of '1' characters is at most k.
Return the total number of substrings of s that satisfy the
Constraints:
s.length
k s.length
s[i] is either '0' or '1'.
You are given a binary string s and an integer k.
A binary string satisfies the
The total count of '0' characters is at most k.
The total count of '1' characters is at most k.
Return the total number of substrings of s that satisfy the
Constraints:
s.length
k s.length
s[i] is either '0' or '1'.