You are given a binary string s.
A substring is said to have dominant ones if the total count of '1's in the substring is greater than or equal to the square of the total count of '0's in that substring.
Return the total number of substrings of s that have dominant ones.
Constraints:
s.length
s consists only of characters '0' and '1'.
You are given a binary string s.
A substring is said to have dominant ones if the total count of '1's in the substring is greater than or equal to the square of the total count of '0's in that substring.
Return the total number of substrings of s that have dominant ones.
Constraints:
s.length
s consists only of characters '0' and '1'.