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.
The phrasing in this kata is very confusing. Much of my time spent solving this was parsing the description.
There is a mistake in the instructions of this kata. The kata states that if we have two numbers that are closest to the mean, we should return the smallest one. The tests actually expect us to return the larger number closest to the mean.