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 like your solution it takes really small amount of time in comparison with string format operation. My solution takes 3-4 times more than yours 🙂 but current one with string format takes 2-3 times more than mine 🙂. String formatting really heavy operation even in this case when we have to format 10 numbers only
nice! Your solution really much faster, but not readable.
This comment is hidden because it contains spoiler information about the solution
Nice panic usage but I also would add a zero division check
nice
it feels like overhead but still clever
agree 😀
good as shortest solution, but not obvious with magic numbers
not bad, but array.shift forces array to update indexes, so it's kinda heavy operation
I did the same, but I think IRL we should provide some average variable so it will be easier to read