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 time complexity of the algorithm in this solution is O(n² log n).
Kata stipulates "an array with exactly 5 strings". Not great for general use, but meets the requirements of the kata.
This comment is hidden because it contains spoiler information about the solution
wow...
incredible, but kind of difficult to understand what is going on there...
Amazing solution, Man. Keep on staying original!
perfectly
like it
My respect! You did it in one iteration!
It's like mine, but I decided to use just a flag instead. Your's is memory consuming very a little bit.
Wow. This is better than mine. Very clever
Yes, finally some solution that doesn't ignore the task and works both for literals and numbers :D
You know how to write code
Really cool solution
Nice only 2 lines
Loading more items...