Y
Hacker News
new
|
ask
|
show
|
jobs
by
sad
5717 days ago
Yes, but we must solve the problems correctly. The question is whether a number is a power of two, not divisible by 2.
1 comments
yan
5717 days ago
I think Ed wrote the first line of a function, not all of it. See the iterative solution in the posted article.
link
sad
5717 days ago
Ohh, looks like you are probably right. Mea culpa!
link