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.
Can you help to check if something is wrong? I always get 'Code timed out' even my code passed a lot of tests ...
Best solution so far ;)
Agree with rayning that the max value constraints should be added.
Very nice solution! Double tilde can be used as Math.floor if the value is positive ;)
I believe the specs have something wrong ... Can't understand why my codes failed!!!
I think this is a good solution compared to others. We should not modify input object or its class to make our solution work :)