AlgoMaster Logo

Count Binary Substrings

s=00110011
0 / 15
prev = 0 curr = 1count = 00123456700110011
algomaster.io
Step:Count substrings of "00110011" with equal runs of 0s and 1s