You are viewing a single comment's thread. Return to all comments →
python3
def beautifulBinaryString(b): # Write your code here count = 0 while b.find('010') != -1: b = b.replace('010', '011', 1) count +=1 return count
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Binary String
You are viewing a single comment's thread. Return to all comments →
python3