Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Aaah ... thanx. Solved this one
Please read my initial post... You're returning NOTHING. And that's the problem.
This comment is hidden because it contains spoiler information about the solution
You don't need the
(n >>> 0)
, but it still outputs the same thing. What is the other part of your code. The input is always non-negative - the tests ensure that; you don't have to test for that case.This comment is hidden because it contains spoiler information about the solution
There shouldn't be negative inputs in the kata
With -53 as argument, my functions returns 29. There are 29 ones in the binary representation of the integer.
Are you returning this result?
This comment is hidden because it contains spoiler information about the solution