Search results

  1. A

    Somebody help me out with a brain teaser...

    Possible solution Here's a possible solution: Write out the number in binary with no leading zeroes. The result is 2*n1+n0, where n1 is the number of 1s in the binary representation, and n0 is the number of zeroes.
Back
Top Bottom