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 current solution upvote system slightly rewards shorter code over efficient code on many problems. I think this might change in the future if they decide to show the average runtime of each solution.
+5Kyu kata check for efficiency more often as a requirement to pass the tests. On lower level kata, you can mostly expect short solutions that are far from being considered best practices.
Other reason for writing shorter code is simply having a little bit of fun. I've done it myself.
So, why are people here focusing on less code lines instead of perfect run times? Sorting is not a reasonable solution if efficiency is required.
Shouldn't be that array final then ?
.
there is nothing wrong with the question; you can try using the filter function
Hi!
Could you explain, what do you mean?
Are there any examples?
This comment is hidden because it contains spoiler information about the solution
⠀⠀⠀⠀⠀⠀⠀⠀
nice kata!
the average is for the total amount of time; consider the h/m/s as total seconds