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.
Hi man! Can you tell us what's wrong with 'wkppvixoyxzzzzzzzzzzzz' result in this example?
I also get the same result.
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).
Interesting Kata. I've discovered a quirk about the javacript
Array.prototype.sort
method, that sometimes re-arranges array items in an unexpected fashion. For example, when implementing the following code, the expected result is returned.However, the longer random examples in this Kata appeared to break this pattern, and equivalent length strings were rearranged in the array after the sort method. I'm not able to explain this behaviour.
Post a question not an issue.The tests are the same in all languages and 5956 guys passed the kata!
There are no errors in the tests.
Please re-read the description.
At the test: ['it', 'wkppv', 'ixoyx', '3452', 'zzzzzzzzzzzz'],3
Im returning "wkppvixoyxzzzzzzzzzzzz" but it expects "ixoyx3452zzzzzzzzzzzz"
The three largest strings are "wkppv", "ixoyx" and "zzzzzzzzzzzz"
Isn't this an error, or did i misunderstand the Kata.
Did you see hint?
Hmm,:?, I actually had overlooked the puzzle tag. I have updated and added it.
Seen and approved! Thank you!
When the score is 257,why allergies are eggs instead of cats and eggs?
I was confused about how the score make up?
Why the score can be 1000?
PHP version!Cheers
I concur, it should be used more often for this kind of neat katas :)
@BrianLusina you have made cool kata,thanks!
IMO add puzzle tag ;D
Noted. Crystal translation approved.
Nope, just the same error message and the same type of exception is thrown for each data type that is not an integer.
Noted and updated. Thank you
Loading more items...