Sunday, December 25, 2011

Bit counting - Expected order is the number of bits set.

Count number of set bits in a number.

output:

Bit Count: 6
1100110101

No comments:

Post a Comment