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.
It's difficult to tell exactly what is wrong without seeing your code, but the most probable cause is that your solution relies on the
sort
being stable, while it's not guaranteed in Node version available on Codewars.If you read through the discourse of this kata, you will notice that many users experienced this problem, for example here: https://www.codewars.com/kata/55c6126177c9441a570000cc/discuss#614ae966bfd3cf00077029c3
Some info on stability of Javascript
sort
: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#sort_stabilityFirst of all, problems with your solution are not kata issue.
Second thing is that you misinterpret the assertion message. It reads: "It should work for random tests too: expected actual value to equal expected value ". This would mean that your solution returns
"130 153674 142 ..."
, while it should return"130 33 142 ..."
.Something you dont understand is not a kata issue, sorry!
Are you sure of what you returned and of what is expected?