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.
hi
i have a doubt. the binary of 5 is101 ..but there isnt any consequtive 1s in that. so it shud be 0 right?
and for the binary of 15 i.e. 1111 how many consequtive 1's are there? 3 right?
please help
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 →
hi i have a doubt. the binary of 5 is101 ..but there isnt any consequtive 1s in that. so it shud be 0 right? and for the binary of 15 i.e. 1111 how many consequtive 1's are there? 3 right? please help