Peilin
0
Q:

find no of 1's in a binary number

len(''.join(str(bin(122011)).split('0')))-1
0

New to Communities?

Join the community