Re:Write A Function To Determine If A Number Is A Power Of 2
by Retric on Monday October 18, 2010 @12:41PM
(#1804157)
I think his first example was a recursive function like:
or
PS: 2^0 = 1 and 2^-1 so you could have 3 versions of this fuction.
[ Parent
| on HN ]
There are no comments on this comment yet.