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.
def power_of_two( n ): return n > 0 and (n&(n-1)) == 0
would fix that and still be faster, I cant get the submission to change for some reason though
It's true for n=0 ... :|
This comment is hidden because it contains spoiler information about the solution
I get that this line describes the valid as a range of characters from a to m, but what is it?
@valid ?a..?m
This is a source code length optimization of Float.round(v0 * 10 * 1000 / 3600 / 9.81) that works sometimes (depending on the random test cases chosen).
This is a source code length optimization of Float.round(v0 * 10 * 1000 / 3600 / 9.81) that works consistently.