Skip to content
Code ReadingCount the Ones
Bug Hunt

Count the Ones

It should count the 1s in n's binary form, but for n > 0 it never stops. Find the line and the kind of bug.

Click the line you think is wrong.