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.
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.