martedì 2 marzo 2010

Bit calculator... I'm going slightly mad

I was solving just for kicks this very famous brain teaser:

Count the number of set bits in a number.

and this is what came out:

//edit: I have to find a proper way of formatting code here before posting...

Nessun commento: