You are viewing a single comment's thread. Return to all comments →
My implementation:
`
if name == 'main': n = int(input().strip()) binary = bin(n)[2:].split('0') print(len(max(binary)))
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 →
My implementation:
`
if name == 'main': n = int(input().strip()) binary = bin(n)[2:].split('0') print(len(max(binary)))
`