Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sad
· 16y ago · 0 comments
Yes, but we must solve the problems correctly. The question is whether a number is a power of two, not divisible by 2.
Comments
[–]
yan
16y ago
I think Ed wrote the first line of a function, not all of it. See the iterative solution in the posted article.
[–]
sad
OP
16y ago
Ohh, looks like you are probably right. Mea culpa!