We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Beautiful Binary String
Beautiful Binary String
Sort by
recency
|
842 Discussions
|
Please Login in order to post a comment
def beautifulBinaryString(b): return len(re.findall(r'(010)',b))
Here are my c++ solution, explanation here : https://youtu.be/xf0JsPRH5rs
Solution 1 :
Solution 2 :
Java solution
Simple C Solution