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.
I had thought a workaround regarding turning the array into a string, apply the reverse on it and then turn it back into an array.
But since this exists on PHP, no real need. Just for the fun of tinkering around with it.
Probably it's a matter of precision
I don't understand what random tests are telling me,
I check in the IDE and everything works.
The same test passes successfully.
What does he see wrong? My code is extremely simple.
By brute force it eventually passed, I looked to see if the most voted codes did better and I got the same result.
Faced this problem. Were you able to solve it?
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