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.
YES. I sat here for too long missing the part where you are just counting the 1's in the binary code
like 0111 has 3 1's.
1001 has 2 1's.
1111 has 4 1's.
I like how intuitive this is, just it is very wasteful in computation.
This comment is hidden because it contains spoiler information about the solution
I think that the final test use antoher value that is not a string, if you run with the sample test you can see that in fact, "*" is a string
My tests are all passing but failing on submission. I think the tests should be amended or more guidance should be given as to what the contraints are.
Make sure you have
Node v6
selected in the version list.not pass this kata
This comment is hidden because it contains spoiler information about the solution
"*" is a string. The kata should define what it means by 'string' and shouldn't use the term string.
I think it would be clearer if the description reads as "... that are equal to THE NUMBER one in the binary....". I initially interpreted the description as "... that are equal to the ones in the binary..."