You are viewing a single comment's thread. Return to all comments →
My Python 3 code:
if __name__ == '__main__': n = int(input().strip()) s_group = bin(n)[2:].split('0') n_group = [len(x) for x in s_group] print(max(n_group))
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 Python 3 code: