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.
Day 10: Binary Numbers
Day 10: Binary Numbers
Sort by
recency
|
2788 Discussions
|
Please Login in order to post a comment
javascript solution
PYTHON CODE At first i thought it'll be hard but it tourned out to be very simple
My newbie approach to the solution for C code , took 3 hours of research.
if name == 'main': n = int(input().strip()) print(len(max(bin(n)[2:].split("0"))))