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.
It shouldn't work with floats. If floats ar needed return must be changed from int to float
This won't work with floats..
WoW
If you have set declare(strict_types=1); php would throw an error (because you try to return string as int), if this declaration is missing it will convert string to int.
This comment is hidden because it contains spoiler information about the solution
Brilliant
It's decision with mistake, because it only subtracts one minimum and maximum element. And if you have two minimal elements, for example in the array [1,1, 2, 10,11] the program will take only one minimal element from the final result
It's been approved by someone it seems.
Not a kata issue.
php kata description is square?
It should be pow??
Thank you!!
Fixed that. Actual and expected were also swapped (fixed that too).
php function params sperm no '$'?
As the input may have trailing spaces, you will also need to ignore unneccesary whitespace.
string not trim()?