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.
This comment is hidden because it contains spoiler information about the solution
You're right, thank you!
Will do. I don't think I'm able to change this one's flag now, though.
I think you misread the MDN page : it states that stable sorting is mandatory since version 10
of Javascript
(aka EcmaScript 2019). On the same page, it is shown that the first Node version to mandate stablesort()
isNode 12.0
, which is the latest version that Codewars supports, but which isnt enabled for this particular kata, hence why your solution is failing.BTW, please flag your questions as
Question
instead ofIssue
which is reserved for problems provoked by the kata itselfNo random tests and content is not novel.
Please unpublish this and read available documentation on publishing your first kata.
The input array contains non-negative numbers (not strictly positive).
Okay, didn't know that. Thank you!
Because divsors always exist in pairs, one divisor below the root, and the other one above the root.
Why is it enough to search for potential divisors of a number up until its square root only? Could someone explain that?
This comment is hidden because it contains spoiler information about the solution
You're absolutely right. I must have overlooked/completely forgotten about that part of the description when I stumbled upon the error. Sorry!
就是说你的array的长度是2 但是实际上应该是要3 所以你可能要检查下你的编码了 ~~
But, but, but.... it does
Maybe you mean that the ascending part should be specified. AFAIK most sorting implementations do this by default, and if not, should require only a tiny modification to your solution to rectify.
Not an issue :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution