Rosetta Problems

Count the Number of Substrings With Dominant Ones

https://leetcode.com/problems/count-the-number-of-substrings-with-dominant-ones