You are viewing a single comment's thread. Return to all comments →
i did this in python 3 just one line
print(sorted(list(map(len,'{0:b}'.format(int(input().strip())).split("0"))),reverse=True)[0])
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 →
i did this in python 3 just one line