Monday, February 14, 2011

How will you identify a given number is a power of 2?

Shorter One:

N & N-1 = 0

No comments:

Post a Comment