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.
Your
implode
andarray_map
function are wrong.Also, your code has rounding problems as description does not mention of doing so.
Instead, you should follow this:
Be very carefull with eval. Basically you should not do it. And if you do - sanitize input.
lol
why to traverse through array twice, so this solution will reduce the number of operations in half.
Empty array will result division by zero.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution