Beautiful Binary String

  • + 0 comments

    PYTHON SOLUTION

    def beautifulBinaryString(b):
        # Write your code here
        return len(b.split('010'))-1