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

I think Ed wrote the first line of a function, not all of it. See the iterative solution in the posted article.
Ohh, looks like you are probably right. Mea culpa!