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.
Did same Kata on Python. Learned regex basics from there. (Regex is confusing)
Seems that this solution is not completely correct, as if the array is not sorted, but the First element = Min/Max and the Last element = Max/Min, the result will be incorrect, e.g. new [] {1, 2, 4, 3, 5, 6, 7, 6, 8}, it returns - "yes, ascending", while the array is not sorted.