Hi!
How fast algorithm can you write for finding out if an integer is a power of two?
Printable View
Hi!
How fast algorithm can you write for finding out if an integer is a power of two?
Try google. It's great for helping with homework.
Check out this page http://graphics.stanford.edu/~seander/bithacks.html