Beautiful Binary String

  • + 0 comments

    SIMPLEST SOLUTION IN PYTHON-

    l=b.split('010')

    return len(l)-1