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'd give u a downvote bc of this comment, go back to stackoverflow.
There should be a downvote button in this place, so that people would know what not to do.
This comment is hidden because it contains spoiler information about the solution
you sorted the array which is less efficient then itterating over it
What's that
why do it in Θ(nlogn) by sorting when you can just itterate for Θ(n)?