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.
This comment is hidden because it contains spoiler information about the solution
Fixed.
Hahaha, we got almost the same code.
This is actually still a problem. Truncating decimal values for the seconds does not work for all random test cases. Truncating/dropping decimal values if the same as using floor(), however using floor does not work. Rounding (as in round()) works 90% of the time and ceil() definitely does not work.
In the interest of fair play, the description should include a warning that test cases have been written so as to specifically exclude converting to the array to a number and back.
I don't always truncate:-) In this case yes: it was what I meant when I wrote in the description
@bkaes: thanks for your answer!
As far as I know g964, truncate all floating point values, and keep in mind that the speed is given in "something per hour", where the smallest unit you have to return is seconds.
This needs explicit rounding rules.
Needs grammar fixed in description