just write the return 0 outside the while loop and then ur code works fine.
1 Like
Good, thanks
, I don’t know what to say
1 Like
hi, can you explain the logic of your solution.
counting set bits in n
1 Like