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.
Do you mean your code works fine in that case and fails in another? In which one, what's the input and what does your code return? If you post your code, follow this guide: https://docs.codewars.com/training/troubleshooting/#post-discourse
It's explained in the description.
And how many 1s has 256 in binary? You have to return the next higher number with the same amount of 1s in its binary form. 128 has 1 too.