Tests can no longer be modified, while the implementation was meant to cut some slack for beginners (and avoid me a flood of "issues" for that kind of problem in the comments, as I have in other katas); I since stopped doing that and embraced your same philosophy, though.
What was the some analysis that you did... I'm kinda surprised that this solution works
The task is to maintain numbers' order in the argument array, not the Natural numbers order.
This comment is hidden because it contains spoiler information about the solution
Wrong. The random tests send shuffled inputs to the user. All is fine.
(though there is another problem I just saw... I'll correct that one.)
This comment is hidden because it contains spoiler information about the solution
Changed
positive number n
topositive integer n
;-)Tests can no longer be modified, while the implementation was meant to cut some slack for beginners (and avoid me a flood of "issues" for that kind of problem in the comments, as I have in other katas); I since stopped doing that and embraced your same philosophy, though.