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.
Probably it's a matter of precision
By brute force it eventually passed, I looked to see if the most voted codes did better and I got the same result.
Sometimes we have tests that expect a float as output, for example :
It should work for random tests too: 45.5 should equal 45.0
It should work for random tests too: 535.5 should equal 535.0
It should work for random tests too: 711.5 should equal 711.0
It should work for random tests too: 829.5 should equal 829.0