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.
( JS )
Custom failure messages do not add to default failure messages. Inputs are already in
it
-headers, so custom messages are just not necessary.( JS )
User solution is called outside
it
, which means logging is detached from testing.( JS )
Random tests are vulnerable to input modification
This comment is hidden because it contains spoiler information about the solution
Python Translation for review / approval
TypeScript Translation for review / approval
CoffeeScript Translation for review / approval
The author hasn't been active for quite a while. Reworded the description a bit on this one, not sure if that's OK?
A few littles typos in the description:
.., with this sorted subarray re[P]lacing original subarray, ..
The function accept[S] an array of integers, arr, re[TU]rn the subarray's ..