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.
Unfortunately, I don't understand the meaning of "consecutive 1s". Doesn't consecutive 1s mean occurence of a 1 right after another 1? for example, If the number is 101, shouldn't the number of consecutive 1s be 0 since there are only two ones and they are separated by a 0?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
Unfortunately, I don't understand the meaning of "consecutive 1s". Doesn't consecutive 1s mean occurence of a 1 right after another 1? for example, If the number is 101, shouldn't the number of consecutive 1s be 0 since there are only two ones and they are separated by a 0?