15 August 2017

Count Bits

My solution:
def countBits(n):
    return n.bit_length()

Previous Next