You are viewing a single comment's thread. Return to all comments →
#python n = int(input().strip()) maxx=0 for x in bin(n)[2:].split('0'): if x!="": maxx=max(len(x), maxx) print(maxx)
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 →