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.
maybe, but what default would make sense here? the (implicit) default case here returns undefined, which i think is appropriate
There are a few ways to get know if a number is power of two. And all of them will work quickly with small numbers. But the hidden test cases(which you run by pressing 'submit' buttom) use very big numbers. And some alghoritms will be able to deal with very big numbers for a short time. Yes, it's a kind of joke why i didn't show all values in public test cases:)
The timeout happens because of test cases use very big numbers, and not all solutions can be good.