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.
Thanks for your solution, upvoted (clever +1)
countourMode = countTourMode, it should be :)
Just think about 1000 bottles of whine
.LOL. I suppose the King can store them in the palace cellar along with his 50 barrels of grizzle, 20 tubs of whinge, and that giant vat of moan that nobody wants to go near...
:-)
This comment is hidden because it contains spoiler information about the solution
The ECMAScript standard doesn't specify and V8 (NodeJS, Chromium) doesn't guarantee stability, so this is expected.
I haven't looked at the source, so I'm just guessing, but probably the sorting algorithm used depends on the length of the array. Switching to unstable but faster one for larger array.Looks like in-place quicksort and insertion sort is used (v8/src/js/array.js#L709-L1002).
Look into your solution.
The reason of it just because you've modified the original array ;-)
In C#:
In Python:
Which language? JS?
But I test it got this:
There never was a remark about that. I'm not the JS translator but the Codewarrior who translated it is excellent, since long.